vaastav / Fantasy-Premier-League

Creates a .csv file of all players in the English Player League with their respective team and total fantasy points
Other
1.35k stars 785 forks source link

Add Understat All Teams data for the season #73

Open RaMorey opened 3 years ago

RaMorey commented 3 years ago

Is there any way you could pull the following data from understat? Currently to get this I'd have to loop through all the individual team csvs and then add the data up to get the following numbers.

Would be great if possible to pull this data in one place

Screenshot 2020-11-19 at 14 16 07
vaastav commented 3 years ago

Hey, yea I can add that table! Will do it over this weekend

RaMorey commented 3 years ago

Thank you! Great help, this is amazing!

Quick question:

For the CSVs, do you manually do them at a certain time each week or do you have cron jobs set up etc?

I'm looking to integrate and was wondering if there is a good time for me to be looking to pull data each week or whether its better for me to just set up a something that constantly checks and pulls the info when its been added.

EDIT: Just seen the script for setting up the cron job scheduling, 12 hours after the the first fixture of each game date? is that correct? How long would you estimate your jobs take?