Forums

tweepy in pythonanywhere

Hi! sorry for my bad english.

I made a twitter bot with tweepy (I have an Elevated account). I have uploaded the app, but it's not working. The app is working great local.

I know that I have to install tweepy like this: pip3.8 install --user tweepy python3.8 main.py

I tried with 3.9 too.

When I Install It In Bash It Says 'Requirement Satisfied

What can I do? The exception is: auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET) TypeError: init() takes from 3 to 4 positional arguments but 5 were given But IT IS WORKING GREAT LOCAL.

thank you so much

Looks like you use different version of the package on your local machine and different version on PythonAnywhere.

Yes, you are right. Local: Version: 4.6.0 Pythonanywhere: Version: 3.10.0

Now I upgraded tweepy, but I have another problem.

I have a requests.exceptions.ProxyError (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

How can I fix this?

Thanks!

What is the domain you try to connect to? Check if it's on the list