jldbc / jldbc/pybaseball

Inconsistent batting_stats_range() response.

Open
#271 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
1.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

Around mid-day EST I ran batting_stats_range('2022-05-20'), and it only returned 8 rows. Going into debugger mode I was able to grab the raw URL pybaseball was sending to the requests module and it loaded fine multiple times in my browser, I saw 200+ rows of data.

I waited a few hours and it seems to work fine for me now, scraping all of the the rows correctly. Trying other dates now, I'm getting similar inconsistency.

I'm not an expert on the requests module but I believe its returning a response before the page is fully loaded. Has anybody experienced this before?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.