markowanga / stweet

Advanced python library to scrap Twitter (tweets, users) from unofficial API
MIT License
580 stars 67 forks source link

Only several tweets #70

Closed dqfrance closed 2 years ago

dqfrance commented 3 years ago

I used your project several months, it is very useful. But recently I find i can only get several tweets. Is there some problems?Thanks

markowanga commented 2 years ago

Please paste some code, it works for me

markowanga commented 2 years ago

I'm preparing stweet 2.0 right now. Twitter changed api on website, current API is deprecated.

dqfrance commented 2 years ago

search_tweets_task = st.SearchTweetsTask( since=Arrow(2007, 1, 1, 0, 0, 0), until=Arrow(2021, 10, 12, 0, 0, 0), from_username= 'elonmusk' ) st.TweetSearchRunner( search_tweets_task=search_tweets_task, tweet_outputs=[tweets_collector] ).run() tweets = tweets_collector.get_scrapped_tweets()

This is my search code, Thanks! Looking forward to the new version!

markowanga commented 2 years ago

I have prepared stweet 2.0. Please try use small intervals -- Twitter add limit for free users where you can't scrap small portion of tweets in one query.