检索超过 7 天的特定用户的推文

发布于 2024-09-14 04:33:24 字数 293 浏览 3 评论 0原文

我正在尝试获取任何用户的推文...但它只返回最近 7 天的推文... 我想检索比这更旧的推文...如何做...

现在我正在获取

http://search.twitter.com/search 的推文.atom?q=from%3Amihirpmehta

这个 URL

,但它只提供过去 7 天内发布的推文。

i am trying to Get the tweets from any user ... but it returns only last 7 day's tweets...
I want to retrieve tweets older than that... how to Do it.. .

Right now i am fetching tweets by

http://search.twitter.com/search.atom?q=from%3Amihirpmehta

this URL

but it only gives me tweets that are tweeted in last 7 days.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

瞄了个咪的 2024-09-21 04:33:24

我找到了一个......通过使用 MGTwitter 我能够取回它...谢谢

I have found one... by using MGTwitter i am able to retrieve it... Thanks

倥絔 2024-09-21 04:33:24

如果您需要收集超过 7 天的推文,则无法使用 Twitter 的 API 来完成,但我认为您可以使用网络抓取来完成(可以使用 Python 模块 BeautifulSoup 轻松抓取推文;但如果有人知道这种方法的缺点,请告诉我们!

If you need collect Tweets older than 7 days you can't do it with Twitter's API, but I think you can do it using web-scraping (the tweets can easily be scraped with the Python module BeautifulSoup ; but please if any one know the disadvantage of this method tell us!

七月上 2024-09-21 04:33:24

我认为 twitter 搜索 API 不允许您进一步返回。如果添加until参数,您可以看到,如果返回超过一周,它会返回404。

I don't think the twitter search API allows you to go back any further. If you add the until parameter you can see that if you go back more than a week it returns a 404.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文