Hi All,
I am new in Python programming and would like to get historical tweets for machine learning project.
I have created Search Tweets: 30-days/Sandbox a few weeks ago. It worked really well.
Today I tried to set up another dev environment for Search Tweets: Full Archive/Sandbox but the results created are still bounded within a month. Is there any limitation that I have overlooked or my request is incorrect?
This is my request in Python, results exported as json:
_endpoint = “https://api.twitter.com/1.1/tweets/search/fullarchive/dev_env_name.json” _
_headers = {“Authorization”:“Bearer AAAAAAAAAAAAAAAAAAAAA…”, “Content-Type”: “application/json”} _
data = ‘{“query”:"(xxx OR yyy OR zzz)"}’
response = requests.post(endpoint,data=data,headers=headers).json()
with open(‘tweetdata_full.json’, ‘w’) as file:
_ json.dump(response,file,indent = 2)_
Thanks in advance!
from
Newbie who really need help