double-dose-larry/sportsref

Cloudfront CSV

Opened this issue · 2 comments

Didn't see a way of contacting you so Id thought I do it through here, I found your code why google searching some of the domains I found, and found your util.py
Was particularly looking at
csv_url = f"https://{cdn}.cloudfront.net/short/inc/{player_or_team}s_search_list.csv"

What do you mean by {player_or_team} would I replace this with its unique id?
Ive found some links such as
https://d6rt22vwfyr3i.cloudfront.net/short/inc/players_search_list.csv
and
https://d6rt22vwfyr3i.cloudfront.net/short/inc/clubs_search_list.csv

But if I wanted info on a player doing
https://d6rt22vwfyr3i.cloudfront.net/short/inc/19538871_search_list.csv
Does not load

I was wondering what the significance of the line meant thanks

19538871 being the id for Manchester United

The way that fbref works slightly differently then the other sports-reference websites. look up the id in the clubs csv.