Querying Most Popular Tweets using Tweepy V2 API #1955
-
I am scraping Twitter tweets using the Tweepy V2 API, but am having trouble querying for more popular tweets with higher retweets and likes. My application requires that I ignore retweets and replies for tweets via However, I currently have numerous tweets which have very low likes and retweets, which is inadequate for my application. Is there any method to query based on popularity or retweets count in Tweepy V2? The popularity filter seems to only exist in Tweepy V1 (https://stackoverflow.com/questions/44447258/is-there-a-way-to-search-for-top-tweets-with-tweepy-instead-of-latest-tweets). Sample code is shown below:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You're referring to Twitter API v2 and Twitter API v1.1, as Tweepy v2 was released almost a decade ago and Tweepy v1 is from over a decade ago. I don't think there's a good way to do this with Twitter API v2, beyond trying setting the You can provide feedback on Twitter API v2 functionality on the Twitter Developers Forums. |
Beta Was this translation helpful? Give feedback.
You're referring to Twitter API v2 and Twitter API v1.1, as Tweepy v2 was released almost a decade ago and Tweepy v1 is from over a decade ago.
I don't think there's a good way to do this with Twitter API v2, beyond trying setting the
sort_order
parameter to"relevancy"
.You can provide feedback on Twitter API v2 functionality on the Twitter Developers Forums.