We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError Traceback (most recent call last) in ----> 1 schedule1=get_schedule(1971,playoffs=False)
/opt/anaconda3/lib/python3.7/site-packages/basketball_reference_scraper/seasons.py in get_schedule(season, playoffs) 16 soup = BeautifulSoup(r.content, 'html.parser') 17 table = soup.find('table', attrs={'id': 'schedule'}) ---> 18 month_df = pd.read_html(str(table))[0] 19 df = df.append(month_df) 20 df = df.reset_index()
/opt/anaconda3/lib/python3.7/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) 1103 na_values=na_values, 1104 keep_default_na=keep_default_na, -> 1105 displayed_only=displayed_only, 1106 )
/opt/anaconda3/lib/python3.7/site-packages/pandas/io/html.py in _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs) 910 break 911 else: --> 912 raise_with_traceback(retained) 913 914 ret = []
/opt/anaconda3/lib/python3.7/site-packages/pandas/compat/init.py in raise_with_traceback(exc, traceback) 45 if traceback == Ellipsis: 46 _, _, traceback = sys.exc_info() ---> 47 raise exc.with_traceback(traceback) 48 49
ValueError: No tables found
The text was updated successfully, but these errors were encountered:
No branches or pull requests
from basketball_reference_scraper.seasons import get_schedule, get_standings
schedule1=get_schedule(1971,playoffs=False)
ValueError Traceback (most recent call last)
in
----> 1 schedule1=get_schedule(1971,playoffs=False)
/opt/anaconda3/lib/python3.7/site-packages/basketball_reference_scraper/seasons.py in get_schedule(season, playoffs)
16 soup = BeautifulSoup(r.content, 'html.parser')
17 table = soup.find('table', attrs={'id': 'schedule'})
---> 18 month_df = pd.read_html(str(table))[0]
19 df = df.append(month_df)
20 df = df.reset_index()
/opt/anaconda3/lib/python3.7/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)
1103 na_values=na_values,
1104 keep_default_na=keep_default_na,
-> 1105 displayed_only=displayed_only,
1106 )
/opt/anaconda3/lib/python3.7/site-packages/pandas/io/html.py in _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs)
910 break
911 else:
--> 912 raise_with_traceback(retained)
913
914 ret = []
/opt/anaconda3/lib/python3.7/site-packages/pandas/compat/init.py in raise_with_traceback(exc, traceback)
45 if traceback == Ellipsis:
46 _, _, traceback = sys.exc_info()
---> 47 raise exc.with_traceback(traceback)
48
49
ValueError: No tables found
The text was updated successfully, but these errors were encountered: