Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR#0004: data retrieval error while scraping #627

Open
andresalerno opened this issue Jul 8, 2023 · 1 comment
Open

ERR#0004: data retrieval error while scraping #627

andresalerno opened this issue Jul 8, 2023 · 1 comment

Comments

@andresalerno
Copy link

Hi! I'm using the code below but I receive the error below as well:

itsa = inv.get_stock_information(stock = "ITSA4",
country = "Brazil",
as_json = False)


RuntimeError Traceback (most recent call last)
Cell In[19], line 1
----> 1 itsa = inv.get_stock_information(stock = ticker,
2 country = "Brazil",
3 as_json = False)

File c:\Users\Salerno\OneDrive\Documentos\Private\Salerno\Pessoal\Cursos\analise_macro\indicadores_fundamentalistas.venv\Lib\site-packages\investpy\stocks.py:1356, in get_stock_information(stock, country, as_json)
1353 result.at[0, "Stock Symbol"] = stock
1355 if not path_:
-> 1356 raise RuntimeError("ERR#0004: data retrieval error while scraping.")
1358 for elements_ in path_:
1359 title_ = elements_[0].text_content()

RuntimeError: ERR#0004: data retrieval error while scraping.
requirements.txt

Best

@racoonism
Copy link

I have this issue too where i get this exception/error:
AttributeError: type object 'object' has no attribute 'dtype'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants