Open andresalerno opened 11 months ago
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, asjson) 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
I have this issue too where i get this exception/error: AttributeError: type object 'object' has no attribute 'dtype'
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, asjson) 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