Forums

proxy error with requests

Hi, I'm using requests in a project and when I use the function requests.get(www.example.com) it gives me this error: requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.ismonnet.edu.it', port=443): Max retries exceeded with url: /index.php/circolare/ (Caused by ProxyError(' Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) but if I run it in my pc using VS code it works, I asked Gemini and it sayed that I should deactivate the proxy, anyone knows how to fix/deactivate the proxy?

Free accounts on PythonAnywhere have to use a proxy to connect to external websites, and they can only connect to sites on our allowlist of official APIs. If the site that you're trying to connect to has an official documented public API, you can submit a request for it to be added to the list using the link near the top of that page.