Skip to content

Seasons and Directories #3

@availbcbsnc

Description

@availbcbsnc

Hello,

I tried to run your script today and received the following error:

Traceback (most recent call last): File "/Users/MYUSERNAME/Documents/python/nfl/NFL_Stats/scraper.py", line 18, in <module> scraper.get_stats(level, season="2023") TypeError: get_stats() got an unexpected keyword argument 'season'

Not sure what the fix is for that.

Additionally, when the script runs I noticed it does not create a 2024 directory for this past season. Why is that? It seems to create a directory for everything after 1970. Also will the 2025 directory be created after week 1 is completed? Or if I run the script after the first game is completed the directory will be created and start to populate with stats?

I am on the new side to python and coding and I am all self taught, so please be patient with me as I am still learning.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions