查找来自用户的所有推文(不仅仅是前 3,200 条) [英] Find ALL tweets from a user (not just the first 3,200)

查看:24
本文介绍了查找来自用户的所有推文(不仅仅是前 3,200 条)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 https://dev.twitter.com/docs/api/1/get/statuses/user_timeline 我可以获得 3,200 条最新的推文.但是,某些网站如 http://www.mytweet16.com/ 似乎绕过了限制,我的浏览通过API文档找不到任何东西.

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.

他们是怎么做的,或者有没有其他没有限制的API?

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

推荐答案

您可以使用 twitter 搜索页面绕过3,200 限制.但是,您必须在搜索结果页面中多次向下滚动.例如,我搜索了来自@beyinsiz_adam 的推文.这是搜索结果的链接:https://twitter.com/search?q=from%3Abeyinsiz_adam&src=typd&f=realtime

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

现在为了向下滚动多次,您可以使用以下javascript代码.

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);
    }

只需在 FireBug 控制台中运行它.等待一段时间加载所有推文.

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

这篇关于查找来自用户的所有推文(不仅仅是前 3,200 条)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆