Skip to content

Tag: tweepy

How do I get username on tweepy streamer?

I am using Tweepy.StreamingClient to get some tweets but I am not able to get the username even if I add the filters. I am using the v.4.10.1 of Tweepy Answer Okay I figure it out! I’m using on_tweet that only bring the class Tweet. Tweepy on_tweet Instead I should use on_data that bring all info needed…

KeyError when there exists a key

Using Tweepy, I was trying to live stream the Tweets and save it into database sqlite but as soon as I load the JSON file and store into database the error keeps on occurring saying KeyError : created_at but there already exists a key created_at. I tried with others too, but still the error persists. Here is …