0

因此,我正在做相当琐碎的任务,即从特定用户那里检索推文。我真正想做的是计算他的每条推文被转发了多少次。我看过python的tweepy的API,一直没能找到明确的答案。有没有办法在python中做到这一点?

4

1 回答 1

0

tweepy, might not have method for every endpoint in the twitter API.

tweepy should allow you to call an arbitrary endpoint, though. When in doubt, you can check out the official twitter API to see what is offered.

https://dev.twitter.com/docs/api/1.1

It appears that you might only be able to get 100 retweets for a given tweet_id

https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/%3Aid https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids

于 2013-09-16T13:37:36.587 回答