twitter-oauth

Python Twitter bot, Tweepy 4.10.1 gives Traceback error and tweepy.errors.Forbidden 403

Python Twitter bot, Tweepy 4.10.1 gives Traceback error and tweepy.errors.Forbidden 403 Question: I made sure that all the keys and secrets are correct, but I’m just not sure that I’m getting it. (I HAVE ELEVATED ACCESS) I was following this tutorial on YouTube. This is the Python code: import tweepy api_key = "XXXXX" api_secret = …

Total answers: 2

How to use Tweepy set_access_token?

How to use Tweepy set_access_token? Question: So I am a complete beginner to Tweepy, and I was trying to get started from their tutorial with the following code: import tweepy auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) public_tweets = api.home_timeline() for tweet in public_tweets: print tweet.text Before the OAuthHandler, I added the consumer_key, …

Total answers: 1