[text] l

Viewer

  1. ImportError: html5lib not found, please install it
  2. File <command-2177609803612567>, line 48
  3.      46 soup = BeautifulSoup(response.text, 'html.parser')
  4.      47 table = soup.find('table')
  5. ---> 48 df = pd.read_html(str(table))[0]
  6.      49 # Construct file name based on selected options
  7.      50 file_name = f"{country}_{report_type}_{product}_{view}_{time_period}.xlsx"
  8. File /databricks/python/lib/python3.11/site-packages/pandas/io/html.py:926, in _parser_dispatch(flavor)
  9.     924 if flavor in ("bs4", "html5lib"):
  10.     925     if not _HAS_HTML5LIB:
  11. --> 926         raise ImportError("html5lib not found, please install it")
  12.     927     if not _HAS_BS4:
  13.     928         raise ImportError("BeautifulSoup4 (bs4) not found, please install it")

Editor

You can edit this paste and save as new:


File Description
  • l
  • Paste Code
  • 26 Apr-2024
  • 748 Bytes
You can Share it: