I am using tweepy 4.10.1 to fetch Tweets using StreamingClient, but I am unable to load any media info or even includes object itself. I have tried the similar code using get_tweet() method and media and includes were received fine. The code: I am receiving following error: When I use the same tweet id with get_tweet() method, I can retrieve
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. Tweepy on_data
Tweepy search seems to loop till rate limit is met / not respect the count in the search
I trust all is well with you and yours / thanks for taking a moment to read this. I am trying to figure out why this section of code does not respect 2 things. the count limit, it is supposed to only pull that many tweets, and it does whatever it wants to do. the code seems to loop indefinitely,
Python Tweepy- Extract how often specific hashtag has been used
I’m using tweepy in order to extract data from tweets in Python. Now I’d like to search up the popularity of certain hashtags which should be returned in form of an integer. I’m thinking of a command like: I couldn’t really find anything online, so I’d be very grateful for any hints on that! Answer No, there’s no built in
how to Generate Twitter API access token and secret with read/write permission
I just created twitter api with elevated access but I can’t generate access token with write permission. I need this permission to update my twitter name. Answer App settings -> User authentication Settings -> Edit. Enable OAuth 1.0A -> App permissions Read and Write Callback URL can be set to something like http://localhost if you are not going to implement
tweepy.errors.Forbidden: 403 Forbidden using Twitter API v2 functions in Tweepy?
I am just starting out with using Tweepy and have been having trouble when trying to use the v2 API functions to write a program to Tweet text. Currently, I am getting this error repeatedly: Here is my current code: I have tried regenerating my tokens and keys a few times now, with similar results. I have also tried searching
Python Twitter bot with Tweepy: mentions_timeline() takes 1 positional argument but 2 were given
I’m trying to code a bot for Twitter using Tweepy, and I get this error: mentions_timeline() takes 1 positional argument but 2 were given with this line: mentions = api.mentions_timeline(last_seen_id, tweet_mode = ‘extended’) I can’t take away the last_seen_id, so I don’t know how to resolve this. Answer Tweepy v4.0.0 changed the since_id parameter for API.mentions_timeline to be a keyword-only
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
Twitter reply-to-mentions bot programmed in Python works once and then crashes with error 400: what is the problem?
I´ve been building a bot and it works exactly as intended, but only for one Tweet. Then, it waits 60 seconds, and, if it doesn´t find a new Tweet to reply to (since it´s configured to reply to the most recent Tweet), it throws an error (it´s 400 as in “400: Bad Authentication Data”, but I think the issue is
I made a Twitter bot that automatically tweets Direct Messages:
I recently started to learn python, i had 0 knowledge on pyhton, and in the last few weeks i’ve been studying python and the twitter api. I decided to work on a simple twitter bot, that automatically posts whatever people send on my direct messages, and i maneged to do so. Here’s my code: The code works, but not 100%,