Busquei outro endereço que tenha tabela, pois o que o professor usou não havia mais. Então usei o endereço https://unafiscosaude.org.br/site/campanha-de-adesao-2019/ no código da aula, como mostrado abaixo:
df_html = pd.read_html('https://unafiscosaude.org.br/site/campanha-de-adesao-2019/')
df_html
Mas apresentou o seguinte erro:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-14-dc2f5c6f004c> in <module>
----> 1 df_html = pd.read_html('https://unafiscosaude.org.br/site/campanha-de-adesao-2019/')
2 df_html
~/anaconda3/lib/python3.8/site-packages/pandas/util/_decorators.py in wrapper(*args, **kwargs)
294 )
295 warnings.warn(msg, FutureWarning, stacklevel=stacklevel)
--> 296 return func(*args, **kwargs)
297
298 return wrapper
~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py in read_html(io, match, flavor, header, index_col, skiprows, attrs, parse_dates, thousands, encoding, decimal, converters, na_values, keep_default_na, displayed_only)
1084 )
1085 validate_header_arg(header)
-> 1086 return _parse(
1087 flavor=flavor,
1088 io=io,
~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py in _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs)
915 break
916 else:
--> 917 raise retained
918
919 ret = []
~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py in _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs)
896
897 try:
--> 898 tables = p.parse_tables()
899 except ValueError as caught:
900 # if `io` is an io-like object, check if it's seekable
~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py in parse_tables(self)
215 list of parsed (header, body, footer) tuples from tables.
216 """
--> 217 tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
218 return (self._parse_thead_tbody_tfoot(table) for table in tables)
219
~/anaconda3/lib/python3.8/site-packages/pandas/io/html.py in _parse_tables(self, doc, match, attrs)
545
546 if not tables:
--> 547 raise ValueError("No tables found")
548
549 result = []
ValueError: No tables found
O que fazer?