Skip to content
Advertisement

Tag: twitter

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. Tweepy on_data

Timespan for Elevated Access to Historical Twitter Data

I have a developer account as an academic and my profile page on twitter has Elevated on top of it, but when I use Tweepy to access the tweets, it only scrapes tweets from 7 days ago. How can I extend my access up to 2006? This is my code: Answer The Search All endpoint is available in Twitter API

Translate to text a Emoji Unicode String un python

I have a list of tweets that has been delivered as a csv. But when I read them, the emojis unicode has been converted as str and I can’t translate them to their real name (“waffle” or “heart”). Answer Try it with demoji . You can get more details about demoji at here. code result More For more, if you

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 my code: error

Advertisement