crapher / pyinvesting

Apache License 2.0
34 stars 7 forks source link

Retrieval of historical data not working #1

Open caps6 opened 1 year ago

caps6 commented 1 year ago

The history module is not working as I think investing.com is now blocking any HTTP GET request without javascript.

crapher commented 1 year ago

Yes, that is correct. The search module is not working either. Investing.com started to use Cloudflare and it is blocking any attempt to gather information from their pages with anything but a web browser.
I am trying to fix the problem but I could not find any way to bypass the Cloudflare barrier yet.

caps6 commented 1 year ago

I think the only way to fix it is to switch to browser-mode navigation, e.g. using selenium driver in headless mode.