retrieving tweets from specific user older than 7 days

ⅰ亾dé卋堺 提交于 2019-12-22 12:54:26

问题


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.


回答1:


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




回答2:


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!




回答3:


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.



来源:https://stackoverflow.com/questions/3448203/retrieving-tweets-from-specific-user-older-than-7-days

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!