roclark / sportsipy

A free sports API written for python
MIT License
475 stars 189 forks source link

NCAAB Boxscore and Boxscores returning blank for valid inputs #774

Open colesims-working opened 1 year ago

colesims-working commented 1 year ago

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')
Criviere commented 1 year ago

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

Criviere commented 1 year ago

@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