alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 374 forks source link

Related to the 403 patch, but not quite related #606

Open typhoon71 opened 1 year ago

typhoon71 commented 1 year ago

Like everyone else I got the same issue, so I was trying to work around it.

I noticed that investpy passes "smlID" to the historical data request smlID": str(randint(1000000, 99999999)).

What is it? Also: why random? It's persistent among browsers.

typhoon71 commented 1 year ago

Answering myself: "smlID" is in the webpage source, along the cross ID. I'm trying to simulate browser behaviour with requests, and was missing it.