Forums

urlopen error Tunnel connection failed: 403 Forbidden

Hello to everyone, There are some API pages that I use for testing. I use the urllib.request.urlopen () function to access them. There is a library designed for arduino ethernet shield. it's called teleduino. However, I cannot access api pages related to this library. I get the error I mentioned in the title, and I noticed that pythonanywhere was accessing the api pages that were whitelisted. Thank you.

for example: https://us01.proxy.teleduino.org/api/1.0/328.php?k=E311D241E65F6D6C5B7A7C79EB1064DE&r=definePinMode&pin=2&mode=1

For free accounts, you can only make requests to apis that are white listed or to get unrestricted access you will need to purchase a subscription.