-
hello I am having problems getting this error HTTP 403 after running this code below with the class FavRetweetListener, can someone please guide me to the best possible way to fix that error? I have a Twitter developer elevated access account, please anything that can guide me to the right place to get it fixed or any suggested solutions will be greatly appreciated it. INFO:root: API created #tweepy-bots/bots/config.py import tweepy import logging import os logger = logging.getLogger() def create_api():
consumer_secret,access_token,access_token_secret) auth.set_access_token(access_token,access_token_secret)
""" and here below is the code I am running that gives me the error above """ from multiprocessing connection import Listener from config import create_api import tweepy import logging from textblob import TextBlob import json consumer_key = "x" logging.basicConfig(level=logging.INFO) logger = logging.getLogger() Class FavRetweetListeener(tweepy.StreamingClient):
def main(keywords):
if name == "main":
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
Please post the output from the execution. 401 indicates that your credentials are incorrect. Can you confirm this? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
my credential should be correct since I use the same credential in the code below and I have elevated access
|
Beta Was this translation helpful? Give feedback.
-
the above code works file |
Beta Was this translation helpful? Give feedback.
-
What version of Tweepy are you using? For code block usage, see https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks. |
Beta Was this translation helpful? Give feedback.
-
hello @Harmon758 i am using 4.10.0, i am uing a twiter developer app created on July, i also have both regular and elevated access anable, see picture below |
Beta Was this translation helpful? Give feedback.
-
Then this is a duplicate of #1877 / #1878.
|
Beta Was this translation helpful? Give feedback.
-
i still continue to have an error dispise haveing my code set from Stream to StreamingClient i still get the "Stream encounter HTTP error: 403" |
Beta Was this translation helpful? Give feedback.
Then this is a duplicate of #1877 / #1878.