Skip to content

Commit

Permalink
MBB Raw Updated (Start: 2024 End: 2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 15, 2024
1 parent a0c9895 commit fa1e5df
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 34,749 deletions.
75 changes: 75 additions & 0 deletions hoopR_mbb_raw_logfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23347,3 +23347,78 @@ Error originated just after this operation:
DF []; PROJECT */0 COLUMNS; SELECTION: "None"
INFO:__main__:18.499502340952557 minutes to download 6243 game play-by-plays.
INFO:__main__:Finished MBB PBP for 2024...
INFO:__main__:Scraping MBB schedules for year 2024...
INFO:__main__:3.3116151412328083 minutes to download 1 years of season schedules.
INFO:__main__:Scraping MBB PBP for 2024...
INFO:__main__:Number of Games: 6243
ERROR:__main__:Exception: game_id = 401594319
Traceback (most recent call last):
File "python/scrape_mbb_json.py", line 78, in download_game
result = sdv.mbb.helper_mbb_pbp(
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 104, in helper_mbb_pbp
pbp_txt = helper_mbb_pbp_features(game_id, pbp_txt, init)
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 231, in helper_mbb_pbp_features
pbp_txt["plays"]
File "/usr/local/lib/python3.8/dist-packages/polars/dataframe/frame.py", line 7631, in with_columns
self.lazy()
File "/usr/local/lib/python3.8/dist-packages/polars/utils/deprecation.py", line 93, in wrapper
return function(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/polars/lazyframe/frame.py", line 1695, in collect
return wrap_df(ldf.collect())
exceptions.ColumnNotFoundError: id

Error originated just after this operation:
DF []; PROJECT */0 COLUMNS; SELECTION: "None"
Traceback (most recent call last):
File "python/scrape_mbb_json.py", line 78, in download_game
result = sdv.mbb.helper_mbb_pbp(
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 104, in helper_mbb_pbp
pbp_txt = helper_mbb_pbp_features(game_id, pbp_txt, init)
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 231, in helper_mbb_pbp_features
pbp_txt["plays"]
File "/usr/local/lib/python3.8/dist-packages/polars/dataframe/frame.py", line 7631, in with_columns
self.lazy()
File "/usr/local/lib/python3.8/dist-packages/polars/utils/deprecation.py", line 93, in wrapper
return function(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/polars/lazyframe/frame.py", line 1695, in collect
return wrap_df(ldf.collect())
exceptions.ColumnNotFoundError: id

Error originated just after this operation:
DF []; PROJECT */0 COLUMNS; SELECTION: "None"
ERROR:__main__:TypeError: game_id = 401625566
Traceback (most recent call last):
File "python/scrape_mbb_json.py", line 78, in download_game
result = sdv.mbb.helper_mbb_pbp(
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 101, in helper_mbb_pbp
pbp_txt, init = helper_mbb_game_data(pbp_txt, init)
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 139, in helper_mbb_game_data
pbp_txt["teamInfo"] = pbp_txt["header"]["competitions"][0]
TypeError: list indices must be integers or slices, not str
Traceback (most recent call last):
File "python/scrape_mbb_json.py", line 78, in download_game
result = sdv.mbb.helper_mbb_pbp(
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 101, in helper_mbb_pbp
pbp_txt, init = helper_mbb_game_data(pbp_txt, init)
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 139, in helper_mbb_game_data
pbp_txt["teamInfo"] = pbp_txt["header"]["competitions"][0]
TypeError: list indices must be integers or slices, not str
ERROR:__main__:TypeError: game_id = 401625678
Traceback (most recent call last):
File "python/scrape_mbb_json.py", line 78, in download_game
result = sdv.mbb.helper_mbb_pbp(
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 101, in helper_mbb_pbp
pbp_txt, init = helper_mbb_game_data(pbp_txt, init)
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 139, in helper_mbb_game_data
pbp_txt["teamInfo"] = pbp_txt["header"]["competitions"][0]
TypeError: list indices must be integers or slices, not str
Traceback (most recent call last):
File "python/scrape_mbb_json.py", line 78, in download_game
result = sdv.mbb.helper_mbb_pbp(
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 101, in helper_mbb_pbp
pbp_txt, init = helper_mbb_game_data(pbp_txt, init)
File "/mnt/sdv_repos/sdv-py/sportsdataverse/mbb/mbb_pbp.py", line 139, in helper_mbb_game_data
pbp_txt["teamInfo"] = pbp_txt["header"]["competitions"][0]
TypeError: list indices must be integers or slices, not str
INFO:__main__:19.479536501566567 minutes to download 6243 game play-by-plays.
INFO:__main__:Finished MBB PBP for 2024...
Loading

0 comments on commit fa1e5df

Please sign in to comment.