问题
I am trying to get popular tweets from a specific user with tweepy. I need something like result_type = 'popular' from the twitter API (https://dev.twitter.com/rest/reference/get/search/tweets).
How can I do that?
回答1:
With Python, try this to get 5 popular tweets with tag #yoursearch :
for tweet in tweepy.Cursor(api.search, q='#yoursearch',result_type='popular').items(5):
print(tweet)
来源:https://stackoverflow.com/questions/31903741/how-to-get-popular-tweets-from-a-user-with-tweepy