Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player info scraping #53

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

airhorns
Copy link

This adds a helper function for pulling in the player info for a given player id. Annoyingly, the PBPs from ESPN don't have player ids on them, and use full names, whereas the boxscores do have player ids on them, but use abbreviated names, so if you want to join the two you need to fetch this player info to get the full name for a player id. Yeesh.

@dcstats
Copy link
Owner

dcstats commented Jun 7, 2024

@airhorns just now seeing this - sorry! will look at this this weekend :)

@dcstats dcstats added the enhancement New feature or request label Jun 7, 2024
@dcstats dcstats self-requested a review September 10, 2024 05:06
@dcstats dcstats self-assigned this Sep 10, 2024
@dcstats dcstats removed their request for review September 10, 2024 05:07
@dcstats dcstats changed the base branch from master to 2.1.0 September 10, 2024 05:11
@dcstats dcstats added this to the 2.1.0 milestone Sep 10, 2024
@dcstats
Copy link
Owner

dcstats commented Sep 10, 2024

@airhorns only took me 3 months to get around to this (sorry about that), but this looks great. want to get this new release done ASAP in time for the season.

I appreciate the reconfiguring of the 'page not found' error check - need to do some testing on that, because I think 'page not found' errors can very rarely be just a page loading issue as opposed to a nonexistent page issue, in which case we'd want to retry a page request. that issue might be rare enough though where your implementation (moving on after a PNF error) would be best. been a while though, so can't say for sure off the top of my head. thanks for the contribution!

@dcstats dcstats merged commit 4b19db1 into dcstats:2.1.0 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants