alvarobartt / investpy

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

get_stock_company_profile not working for any stock #438

Open jinusean opened 2 years ago

jinusean commented 2 years ago

This seems to be an issue with the xlmx package

Traceback (most recent call last):
  File "/Users/asdf/Projects/Pythons/data-warehouse-build/download.py", line 82, in <module>
    print(investpy.stocks.get_stock_company_profile(country='united states', stock='aapl'))
  File "/Users/asdf/.pyenv/versions/data-warehouse-build/lib/python3.9/site-packages/investpy/stocks.py", line 792, in get_stock_company_profile
    root_ = fromstring(req.text)
  File "/Users/asdf/.pyenv/versions/data-warehouse-build/lib/python3.9/site-packages/lxml/html/__init__.py", line 877, in fromstring
    doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
  File "/Users/asdf/.pyenv/versions/data-warehouse-build/lib/python3.9/site-packages/lxml/html/__init__.py", line 765, in document_fromstring
    raise etree.ParserError(
lxml.etree.ParserError: Document is empty