简体   繁体   中英

twitter API search for tweets

I am trying to get the public tweets from one user to another from over a year ago but I cannot seem to get the search API to work. I have authenticated my application and tested the API so the application is able to use the API. I have read the documentation at: https://dev.twitter.com/rest/public/search and https://dev.twitter.com/rest/reference/get/search/tweets and followed the instruction of how a query should be structured but it still does not return any results. I get the right results when I search using https://twitter.com/search-advanced so why can I not duplicate the results when using the API? Thank you in advance.

According to the The Twitter Search API documentation, the query you want is not possible: https://dev.twitter.com/rest/public/search

The Twitter Search API searches against a sampling of recent Tweets published in the past 7 days.

Beyond the last 7 days, what you want to achieve can only be done through manually searching an account on Twitter. One option would be to use https://webrecorder.io/

Scroll to the time you want to record or attempt to capture the entire feed. Note the auto scrolling option as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM