retrieving tweets from specific user older than 7

2019-05-20 08:33发布

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.

3条回答
老娘就宠你
2楼-- · 2019-05-20 08:54

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楼-- · 2019-05-20 08:56

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

查看更多
我命由我不由天
4楼-- · 2019-05-20 09:08

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.

查看更多
登录 后发表回答