taspinar / twitterscraper

Scrape Twitter for Tweets
MIT License
2.4k stars 581 forks source link

some dates no result #219

Open PanXinglin opened 5 years ago

PanXinglin commented 5 years ago

I tried to query tweets about "tesla" from 2019-8-1 to 2019-8-28 I write in Spyder 👍 def get_tweets(keyword): begin_date = dt.date(2019,8,1) end_date=dt.date(2019,8,28) limit=None tweets=query_tweets(keyword,limit=limit,begindate=begin_date,enddate=end_date,poolsize=30) tweets_data=pd.DataFrame(t.__dict__ for t in tweets) return tweets_data But I only got tweets from 8/19 to 8/27 So I change the end_date from 2019,8,28 to 2019,8,19 and tried again But got nothing It shows

INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new). INFO: Got 0 tweets (0 new).

martinlehoux commented 4 years ago

This issue doesn't seem to happen when using CLI

filhoweuler commented 4 years ago

This is happening with me as well. I successfully got tweets 20k+ tweets for each day of January 2019 but then for 2019/02/09 and on I got barely any results ...

The code I'm using: tweets = twitterscraper.query_tweets("bitcoin OR Bitcoin OR btc OR BTC OR Btc", begindate=date, enddate=date + dt.timedelta(1), lang='en')

has-ctrl commented 4 years ago

Did any of you find a solution to this problem?