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?
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)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.