You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@abcfy2 I tried that as well, and it's returning an error saying TypeError: mentions is not iterable
Oh sorry, it's an AsyncGenerator, so you have to use await in your for loop iterator:
// remove await because 'await' has no effect on the type of this expressionconstmentions=this.scraper.searchTweets('#nodejs',20,SearchMode.Latest);forawait(constmentionofmentions){console.log(mention);};
after successful scraper login, I am trying to search tweets, but it's just returning empty object
here is my basic code
In my console, it's just
mentions Object [AsyncGenerator] {}
The text was updated successfully, but these errors were encountered: