Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getLatestTweet and getTweets not showing results #108

Open
im-kent opened this issue Sep 17, 2024 · 0 comments
Open

getLatestTweet and getTweets not showing results #108

im-kent opened this issue Sep 17, 2024 · 0 comments

Comments

@im-kent
Copy link

im-kent commented Sep 17, 2024

I am trying to use getLatestTweet and getTweets in order to get the most recent 10 tweets by a specific user.

In the case below, the latest tweet returned was from April 23, 2024 when there are posts more recent than that date.
When listing 10 tweets, the tweets returned are from random dates in no particular order.

When the username is changed from carlosindex02 to devjumzzz, no results are available for getLatestTweet nor getTweets despite the fact that the user has tweets available.

Does anyone happen to know what might be happening?

Note, I am not logged in or authenticated in these calls, the below is the entirety of the code I am using.
 

const scraper1 = require('@the-convocation/twitter-scraper');
async function test(){
const scraper = new scraper1.Scraper();
  var tweet = await scraper.getLatestTweet('carlosindex02', false, 10)
  console.log(tweet)
   for await (const x of scraper.getTweets('carlosindex02', 10)){
     console.log(x)
     console.log('======================')
   }

}
test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant