Skip to content

Commit 0bbfaf7

Browse files
authored
chore: fix missing await for tweet scraping
1 parent 4d47a06 commit 0bbfaf7

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)