You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ~/anaconda3/envs/isa_proj/lib/python3.8/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.
The text was updated successfully, but these errors were encountered:
I get the following error when I tried to use the investpy.stocks.get_stocks_list function:
RuntimeError Traceback (most recent call last)
Cell In[30], line 1
----> 1 investpy.stocks.get_stock_information('AAPL', 'united states')
File ~/anaconda3/envs/isa_proj/lib/python3.8/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.
The text was updated successfully, but these errors were encountered: