Find ALL tweets from a user (not just the first 3,

2019-01-21 02:28发布

With https://dev.twitter.com/docs/api/1/get/statuses/user_timeline I can get 3,200 most recent tweets. However, certain sites like http://www.mytweet16.com/ seems to bypass the limit, and my browse through the API documentation could not find anything.

How do they do it, or is there another API that doesn't have the limit?

7条回答
三岁会撩人
2楼-- · 2019-01-21 03:08

You could check https://www.allmytweets.net/

This saves all the tweets.

查看更多
霸刀☆藐视天下
3楼-- · 2019-01-21 03:09

The only way to see more is to start saving them before the user's tweet count hits 3200. Services which show more than 3200 tweets have saved them in their own dbs. There's currently no way to get more than that through any Twitter API.

http://www.quora.com/Is-there-a-way-to-get-more-than-3200-tweets-from-a-twitter-user-using-Twitters-API-or-scraping

https://dev.twitter.com/discussions/276

Note from that second link: "…the 3,200 limit is for browsing the timeline only. Tweets can always be requested by their ID using the GET statuses/show/:id method."

查看更多
够拽才男人
4楼-- · 2019-01-21 03:21

http://greptweet.com/ is an attempt to surpass the 3200 limit by backing up tweets, and besides that is useful for simple searches.

查看更多
The star\"
5楼-- · 2019-01-21 03:30

I can confirm that the maximum can be slightly over 3200. I'm getting up to 3231 right now.

查看更多
甜甜的少女心
6楼-- · 2019-01-21 03:31

Not all twitter API users are created equal - some are more equal than others.

https://dev.twitter.com/docs/streaming-api/methods

For thine not that equal they suggest creative using of other techniques. You may get more luck by using search api calls with time / id limitation

查看更多
闹够了就滚
7楼-- · 2019-01-21 03:33

You can use twitter search page to bypass 3,200 limit. However you have to scroll down many times in the search results page. For example, I searched tweets from @beyinsiz_adam. This is the link of search results: https://twitter.com/search?q=from%3Abeyinsiz_adam&src=typd&f=realtime

Now in order to scroll down many times, you can use the following javascript code.

    var myVar=setInterval(function(){myTimer()},1000);
    function myTimer() {
        window.scrollTo(0,document.body.scrollHeight);
    }

Just run it in the FireBug console. And wait some time to load all tweets.

查看更多
登录 后发表回答