iSarabjitDhiman / TweeterPy

TweeterPy is a python library to extract data from Twitter. TweeterPy API lets you scrape data from a user's profile like username, userid, bio, followers/followings list, profile media, tweets, etc.
MIT License
169 stars 30 forks source link

get_user_tweets count has no effect #55

Closed anxiaochuang closed 8 months ago

anxiaochuang commented 8 months ago

Hello, I found two problems, which are:

  1. The data obtained by get_user_tweets is incomplete 2.get_user_tweets count does not take effect Here is my code, take a look, is it the problem of the package or my code: tweets = await user.get_tweets('Tweets',10) for tweet in tweets: print(tweet.created_at) print(tweet.text) thank you!
iSarabjitDhiman commented 8 months ago

Hey @anxiaochuang You have to specify 10 as a keyword argument, like this : total=10. Besides, async-await branch is no longer maintained. So I am not sure if its still working. Please read the docs carefully.