sdelgadoc / download-tweets-ai-text-gen-plus

Python script to download public Tweets from a given Twitter account into a format suitable for AI text generation
MIT License
35 stars 8 forks source link

Forbidden: Authentication succeeded but account is not authorized to access this resource. #9

Closed murAIda closed 3 years ago

murAIda commented 3 years ago

Did you experienced that? I followed all Your steps, as Twitter dev account, keys obtaing, environment label setting, anyway I am getting next errors:

tweepy.error.TweepError: {'message': 'Forbidden: Authentication succeeded but account is not authorized to access this resource.', 'sent': '2021-01-29T23:24:30+00:00', 'transtweepy.error.TweepError: {'message': 'Forbidden: AuthactionId': '007a928300d578e4'} Oldest Tweet: 0%|

Do you have some advice?

sdelgadoc commented 3 years ago

Thanks for using the repo! The error says that you authenticated correctly, so your keys are working. However, it looks like you either don't have a development environment set up, or the development environment's name is entered incorrectly.

To create a development environment, go to the Twitter API's Dev environments page, generate a Dev environment for the Full Archive API, and input the environment's name into the section of the keys.py file shown below.

environment_name = ""

Let me know if that works.

murAIda commented 3 years ago

Thanks, after checking Dev environments page I found, there are 3 types of environment and I initiate Search Tweets: 30-DaysSandbox, which did not work, but after selection Search Tweets: Full ArchiveSandbox, the process started work fine.