tweepy / tweepy

Twitter for Python!
https://www.tweepy.org
MIT License
10.45k stars 4.6k forks source link

Update api.search_tweets method to Twitter API V2 tweets/search to account for start_time and end_time #1895

Closed danielpartida closed 2 years ago

danielpartida commented 2 years ago

The method implemented at Twitter API V2 https://developer.twitter.com/en/docs/twitter-api/tweets/search/api-reference/get-tweets-search-all takes into consideration "start_time" and "end_time". The older version (Twitter API V1 v) takes only into consideration "until" https://developer.twitter.com/en/docs/twitter-api/v1/tweets/search/api-reference/get-search-tweets

Harmon758 commented 2 years ago

Since API is Tweepy's interface with Twitter API v1.1, API.search_tweets uses the Twitter API v1.1 endpoint you've linked. This is not something that is going to be changed. Client is Tweepy's interface with Twitter API v2, and Client.search_all_tweets uses the Twitter API v2 endpoint that you've linked.