sportsipy icon indicating copy to clipboard operation
sportsipy copied to clipboard

NCAAB Boxscore and Boxscores returning blank for valid inputs

Open colesims-working opened this issue 2 years ago • 2 comments

The following code returns nothing for either games or game_data. From reviewing previous issues, it likely could be a format change.

from datetime import date, datetime
from sportsipy.ncaab.boxscore import Boxscore, Boxscores

yr, mo, dy = date.today().year, date.today().month, date.today().day

games = Boxscores(datetime(2021,11,7), datetime(yr,mo,dy))

game_data = Boxscore('2023-01-05-19-central-connecticut-state.html')

colesims-working avatar Jan 08 '23 05:01 colesims-working

Same here... getting null output even after trying #720

Criviere avatar Jan 09 '23 02:01 Criviere

@colesims-working I ended up creating my own script to scrape historical box score data for the last 5 seasons (in my case). Hopefully this helps you. Feel free to use the script and modify it to your needs.

https://github.com/Criviere/NCAAB_Sports_Reference_BoxScore_Data_Scraper/blob/main/NCAAB_Scrape_Historical_Data.py

Criviere avatar Jan 11 '23 03:01 Criviere