Forums

Got a ProxyERROR(Tunnel connection failed: 403 Forbidden) when connecting investing.com

Got the error:

raise MaxRetryError(_pool, url, error or ResponseError(cause))
    requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.investing.com', port=443): Max retries exceeded with url: /currencies/usd-rub-historical-data (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))

Free accounts on PythonAnywhere are restricted to accessing websites on our whitelist. If www.investing.com has an official public API, then we can consider adding it to the list -- just send us a link to the API documentation.

Hi. I am also getting a ProxyError when connecting to open data presented through https://data.boston.gov/.
Would you be able to add this to your whitelist? They use CKAN Data API. The link to the documentation is: http://docs.ckan.org/en/latest/maintaining/datastore.html.

The specific URL I am attempting to use is:

url = "https://data.boston.gov/api/3/action/datastore_search?resource_id=12cb3883-56f5-47de-afa5-3b1cf61b257b&limit=20000"

Please let me know if I have to purchase a paid account for this use. Thank you!!

-John Meroth jmeroth@bpl.org

Hi there- is there any documentation by boston.gov saying that they have an api at data.boston.gov? I can't seem to find any reference to data.boston.gov in in the CKAN Data documentation you linked to (which makes sense).

Yes. I apologize. It is very hard to find. From boston.gov you can get to: https://www.boston.gov/departments/analytics-team. There the first square under "LEARN ABOUT OUR WORK" called "ANALYZE BOSTON, BOSTON'S NEW OPENDATA HUB". This is the link to: https://data.boston.gov.

I will email an image. Thank you!

-John

Okay- based on the fact that the data.boston.gov website has a link to its "api documentation" that forwards to the ckan website, we've whitelisted data.boston.gov. Enjoy!

This topic can be closed. Investing.com doesn't have public API

OK, thanks for letting us know.