<urlopen error Tunnel connection failed: 403 Forbidden>

Everything works fine on my computer. pythonanywhere console shows error

<urlopen error Tunnel connection failed: 403 Forbidden>

my code connects via urllib.request to api is that forbidden? why? I'm just writing my first bot Or is this some kind of mistake, please help!

Free accounts on PythonAnywhere have restricted Internet access -- they can only access sites on our whitelist. If you check that page, you'll see that there are a number of different hostnames there, for example -- but not I think that all API requests to Binance are meant to go to the api. hostname, not the www. one.

And how do I connect to ??? not found - doesn't provide any information, it's just a check connection

here is the real api -

here is the documentation:

please add real api to white list

sorry i was wrong. everything works

error in link

working link

sorry for wasting time

OK, glad to hear you got it working.