twitterscraper icon indicating copy to clipboard operation
twitterscraper copied to clipboard

some dates no result

Open PanXinglin opened this issue 4 years ago • 3 comments

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).

PanXinglin avatar Aug 29 '19 09:08 PanXinglin

This issue doesn't seem to happen when using CLI

martinlehoux avatar Sep 19 '19 08:09 martinlehoux

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')

filhoweuler avatar Oct 12 '19 22:10 filhoweuler

Did any of you find a solution to this problem?

has-ctrl avatar Nov 09 '19 13:11 has-ctrl