ryanpmcintire/nfl_py3

Printer-friendly link not found.

Opened this issue · 0 comments

Describe the bug Required
I am seeing the following after running
Printer-friendly link not found.

To Reproduce Required
Steps to reproduce the behavior:

  1. run python main.py -y 2023 -w 4

Expected behavior Required
No errors

Screenshots

Desktop (please complete the following information):

  • OS: windows 10

Additional context

Printer-friendly link not found.
Traceback (most recent call last):
  File "main.py", line 28, in <module>
    df = new_week(year, week)
  File .\nfl_py3\modules\new_week.py", line 173, in new_week
    h = download_picks_page(year, week)
  File ".\nfl_py3\modules\new_week.py", line 49, in download_picks_page
    return html.fromstring(h)
  File ".\anaconda3\envs\nfl_py3\lib\site-packages\lxml\html\__init__.py", line 872, in fromstring
    is_full_html = _looks_like_full_html_unicode(html)
TypeError: expected string or bytes-like object