Skip to content

Commit

Permalink
Merge pull request #1 from sportsdataverse/qf/schedule
Browse files Browse the repository at this point in the history
Cycle through all days, not just `ondays` (days with T25 teams)
  • Loading branch information
JackLich10 authored Jan 9, 2025
2 parents c283af6 + b1cbf6e commit 88a7461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/scrape_wbb_schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def download_game_schedules(seasons, path_to_schedules):

def download_schedule(season, path_to_schedules = None):
logger.info(f"Scraping WBB schedules for year {season}...")
df = sdv.wbb.espn_wbb_calendar(season, ondays = True, return_as_pandas = True)
df = sdv.wbb.espn_wbb_calendar(season, return_as_pandas = True)
calendar = df["dateURL"].str.replace("-","").tolist()
ev = pd.DataFrame()
for d in calendar:
Expand Down Expand Up @@ -84,4 +84,4 @@ def main():
parser.add_argument("--rescrape", "-r", type = bool, default = True, help = "Rescrape all games in the schedule period")
args = parser.parse_args()

main()
main()

0 comments on commit 88a7461

Please sign in to comment.