- ImportError: html5lib not found, please install it
- File <command-2177609803612567>, line 48
- 46 soup = BeautifulSoup(response.text, 'html.parser')
- 47 table = soup.find('table')
- ---> 48 df = pd.read_html(str(table))[0]
- 49 # Construct file name based on selected options
- 50 file_name = f"{country}_{report_type}_{product}_{view}_{time_period}.xlsx"
- File /databricks/python/lib/python3.11/site-packages/pandas/io/html.py:926, in _parser_dispatch(flavor)
- 924 if flavor in ("bs4", "html5lib"):
- 925 if not _HAS_HTML5LIB:
- --> 926 raise ImportError("html5lib not found, please install it")
- 927 if not _HAS_BS4:
- 928 raise ImportError("BeautifulSoup4 (bs4) not found, please install it")
[text] l
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: