Jefferson-Henrique / GetOldTweets-python

A project written in Python to get old tweets, it bypass some limitations of Twitter Official API.
MIT License
1.35k stars 809 forks source link

Only gets year "2019" tweets, #230

Open yigiterbas opened 5 years ago

yigiterbas commented 5 years ago

Hi,

Few days ago code worked perfectly but on the last few days I only get 2019 tweets. Can you help?

maor63 commented 5 years ago

try to change the 'user-agent' field in the TweetManager.py i changed to "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" and it fixed it

yigiterbas commented 5 years ago

Fixed it thank you very much :=)

yigiterbas commented 5 years ago

Although I did what you said, today I couldn't get the past data (2018,2017) Do you have any fixes?

maor63 commented 5 years ago

I have noticed that every 2 weeks i need to change the user agent for some unknown reason. I also add this line of code to the min_position update: min_position = min_position.replace("+","%2B")

shahmohamadi commented 5 years ago

@yigiterbas I did these changes but still only get 2019 results

imrrahul commented 5 years ago

@shahmohamadi @yigiterbas Use the command given in the readme file you will get the results of 2019,2018,2017,....if tweets were available for the following years. As I , myself, have used the command - python3 Exporter.py --querysearch "aadhar card" --maxtweets 25000

check out this screenshot I got the result 3 days ago - screenshot from 2019-01-27 15-39-52

Hope this helps! PS - I have not given specific dates.