ferguras / twitter-analysis

Scrape the Twitter Frontend API without authentication.
MIT License
25 stars 4 forks source link

Do not render tweets anymore if it is the last page regardless #7

Closed briwa closed 5 years ago

briwa commented 5 years ago

Hello again. This is really an edge case, but apparently when you specify the number of tweets that is more than the tweets of that account, due to my last code #6 it would also still return an incorrect number of tweets. Example:

get_tweets('manyver_se', tweets=50)
# this will give you 50 tweets, among which are duplicated tweets
# because the account has < 50 tweets

I figured that the count should be reset to avoid returning duplicated the tweets to match the specified tweets number.

Also, any chance of releasing the new version of the package soon? Many thanks!