alvarobartt / investpy

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

Complication using get_cryptos_overview() #560

Open jjdd2 opened 2 years ago

jjdd2 commented 2 years ago

Good afternoon, everyone,

Scrapping using get_cryptos_overview is currently failing me, likely due to some change in Investing.com's page at https://www.investing.com/crypto/currencies. The error is at follows: RuntimeError: ERR#0092: no data found while retrieving the overview from Investing.com

image

Using the documentation, I replicated the error. It seems that req = requests.get(url, headers=header)_ is returning a page that contains everything but the table that is being asked for. image

This is a problem with the following line that attempts to extract the information. It returns an empty object: table = root.xpath(".//table[contains(@class, 'allCryptoTlb')]/tbody/tr")

Strangely enough, the filtering with one less is successful, but not readable: table = root.xpath(".//table[contains(@class, 'allCryptoTlb')]/tbody")

Has this issue been resolved somehow? Is there something I'm missing? I have already updated investpy and been trying for a few hours. All other functions in the module are operational.