jaebradley / basketball_reference_web_scraper

NBA Stats API via Basketball Reference
http://jaebradley.github.io/basketball_reference_web_scraper/
MIT License
440 stars 106 forks source link

Issue calling play-by-play on calid hornet's home game on November 2nd, 1999. #283

Open EYoung21 opened 1 week ago

EYoung21 commented 1 week ago

image

It should have a valid PBP :)

https://www.nba.com/game/orl-vs-chh-0029900005/play-by-play

jaebradley commented 1 week ago

Note, this is due to the Charlotte Hornets having different teams that then have different abbreviations in Basketball Reference.

This is the relevant URL: https://www.basketball-reference.com/boxscores/pbp/199911020CHH.html (note the CHH).

The resolution of this might take some time as the Team data model hierarchy needs to be rethought a little bit here.

EYoung21 commented 1 week ago

Ok!

EYoung21 commented 1 week ago

I will attach some stack traces of attempts to get play by plays for the Charlotte Hornets for the 1999-2000 season in case that helps at all.

                ERROR 1:
                Time: 2024-11-15 19:52:23
                Team: Team.CHARLOTTE_HORNETS
                Date: 1999-11-02
                Error: Date with year set to 1999, month set to 11, and day set to 02 is invalid
                Traceback: Traceback (most recent call last):

File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 220, in play_by_play values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\http_service.py", line 100, in play_by_play response.raise_for_status() File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911020CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 815, in main analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer) File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 55, in process_team_games pbp_data = client.play_by_play( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 223, in play_by_play raise InvalidDate(day=day, month=month, year=year) basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 02 is invalid

                ----------------------------------------

                ERROR 1:
                Time: 2024-11-15 19:52:23
                Team: Team.CHARLOTTE_HORNETS
                Date: 1999-11-04
                Error: Date with year set to 1999, month set to 11, and day set to 04 is invalid
                Traceback: Traceback (most recent call last):

File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 220, in play_by_play values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\http_service.py", line 100, in play_by_play response.raise_for_status() File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911040CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 815, in main analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer) File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 55, in process_team_games pbp_data = client.play_by_play( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 223, in play_by_play raise InvalidDate(day=day, month=month, year=year) basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 04 is invalid

                ----------------------------------------

                ERROR 1:
                Time: 2024-11-15 19:52:23
                Team: Team.CHARLOTTE_HORNETS
                Date: 1999-11-10
                Error: Date with year set to 1999, month set to 11, and day set to 10 is invalid
                Traceback: Traceback (most recent call last):

File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 220, in play_by_play values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\http_service.py", line 100, in play_by_play response.raise_for_status() File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911100CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 815, in main analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer) File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 55, in process_team_games pbp_data = client.play_by_play( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 223, in play_by_play raise InvalidDate(day=day, month=month, year=year) basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 10 is invalid

                ----------------------------------------

                ERROR 1:
                Time: 2024-11-15 19:52:23
                Team: Team.CHARLOTTE_HORNETS
                Date: 1999-11-12
                Error: Date with year set to 1999, month set to 11, and day set to 12 is invalid
                Traceback: Traceback (most recent call last):

File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 220, in play_by_play values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\http_service.py", line 100, in play_by_play response.raise_for_status() File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911120CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 815, in main analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer) File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 55, in process_team_games pbp_data = client.play_by_play( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 223, in play_by_play raise InvalidDate(day=day, month=month, year=year) basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 12 is invalid

                ----------------------------------------

                ERROR 1:
                Time: 2024-11-15 19:52:23
                Team: Team.CHARLOTTE_HORNETS
                Date: 1999-11-17
                Error: Date with year set to 1999, month set to 11, and day set to 17 is invalid
                Traceback: Traceback (most recent call last):

File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 220, in play_by_play values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\http_service.py", line 100, in play_by_play response.raise_for_status() File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911170CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 815, in main analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer) File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 55, in process_team_games pbp_data = client.play_by_play( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 223, in play_by_play raise InvalidDate(day=day, month=month, year=year) basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 17 is invalid

                ----------------------------------------

                ERROR 1:
                Time: 2024-11-15 19:52:23
                Team: Team.CHARLOTTE_HORNETS
                Date: 1999-11-20
                Error: Date with year set to 1999, month set to 11, and day set to 20 is invalid
                Traceback: Traceback (most recent call last):

File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 220, in play_by_play values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\http_service.py", line 100, in play_by_play response.raise_for_status() File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\requests\models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911200CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 815, in main analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer) File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\dataProcessor.py", line 55, in process_team_games pbp_data = client.play_by_play( ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eli Young\Stat011Script\analyzerStuff\FatigueVSFreethrow\myenv\Lib\site-packages\basketball_reference_web_scraper\client.py", line 223, in play_by_play raise InvalidDate(day=day, month=month, year=year) basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 20 is invalid

                ----------------------------------------

                ERROR 1:
                Time: 2024-11-15 20:57:25
                Team: Team.CHARLOTTE_HORNETS
                Date: 1999-11-02
                Error: Date with year set to 1999, month set to 11, and day set to 02 is invalid
                Traceback: Traceback (most recent call last):

File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year) File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play response.raise_for_status()


  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911020CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 02 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-11-04
                    Error: Date with year set to 1999, month set to 11, and day set to 04 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911040CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 04 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-11-10
                    Error: Date with year set to 1999, month set to 11, and day set to 10 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911100CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 10 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-11-12
                    Error: Date with year set to 1999, month set to 11, and day set to 12 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911120CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 12 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-11-17
                    Error: Date with year set to 1999, month set to 11, and day set to 17 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911170CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 17 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-11-20
                    Error: Date with year set to 1999, month set to 11, and day set to 20 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911200CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 20 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-11-24
                    Error: Date with year set to 1999, month set to 11, and day set to 24 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911240CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 24 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-11-26
                    Error: Date with year set to 1999, month set to 11, and day set to 26 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199911260CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 11, and day set to 26 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-12-08
                    Error: Date with year set to 1999, month set to 12, and day set to 08 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199912080CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 12, and day set to 08 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-12-10
                    Error: Date with year set to 1999, month set to 12, and day set to 10 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199912100CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 12, and day set to 10 is invalid

                    ----------------------------------------

                    ERROR 1:
                    Time: 2024-11-15 20:57:26
                    Team: Team.CHARLOTTE_HORNETS
                    Date: 1999-12-15
                    Error: Date with year set to 1999, month set to 12, and day set to 15 is invalid
                    Traceback: Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
    values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/http_service.py", line 100, in play_by_play
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.basketball-reference.com/boxscores/pbp/199912150CHO.html

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 817, in main
    analyzer.process_team_games(allTeams[key], curr_date[0], curr_date[1], curr_date[2], yearAnalyzer)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/eliyoung/Stat011Project/FatigueVSFreethrow/dataProcessor.py", line 56, in process_team_games
    pbp_data = client.play_by_play(
        home_team=team,
    ...<2 lines>...
        day=day
    )
  File "/Users/eliyoung/Stat011Project/myenv/lib/python3.13/site-packages/basketball_reference_web_scraper/client.py", line 223, in play_by_play
    raise InvalidDate(day=day, month=month, year=year)
basketball_reference_web_scraper.errors.InvalidDate: Date with year set to 1999, month set to 12, and day set to 15 is invalid

                    ----------------------------------------