Skip to content

Commit 908fff3

Browse files
authored
Merge pull request #3960 from hexcow/patch-2
chore: fix missing `await` for tweet scraping
2 parents 4d47a06 + 0bbfaf7 commit 908fff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gettweets.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const TWEETS_FILE = "tweets.json";
2222
console.log("Logged in successfully!");
2323

2424
// Fetch all tweets for the user "@realdonaldtrump"
25-
const tweets = scraper.getTweets("pmarca", 2000);
25+
const tweets = await scraper.getTweets("pmarca", 2000);
2626

2727
// Initialize an empty array to store the fetched tweets
2828
let fetchedTweets = [];

0 commit comments

Comments
 (0)