We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
await
1 parent 4d47a06 commit 0bbfaf7Copy full SHA for 0bbfaf7
scripts/gettweets.mjs
@@ -22,7 +22,7 @@ const TWEETS_FILE = "tweets.json";
22
console.log("Logged in successfully!");
23
24
// Fetch all tweets for the user "@realdonaldtrump"
25
- const tweets = scraper.getTweets("pmarca", 2000);
+ const tweets = await scraper.getTweets("pmarca", 2000);
26
27
// Initialize an empty array to store the fetched tweets
28
let fetchedTweets = [];
0 commit comments