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.43k stars 804 forks source link

Player Images #184

Open Ron111104 opened 1 day ago

Ron111104 commented 1 day ago

probably try to add images for each player which are already hosted i.e the image links . Not sure if you have already done it since in players_raw.csv had seen an image column but it had some numbers eg:23105.jpeg but couldnt locate it

vaastav commented 12 hours ago

Yea, this isn't something I added because I never found any use for the images. The image column has the suffix for the common link where the image files are hosted.

Is this something that people actually want as part of the dataset? I am not sure what the utility of these images would be.

Ron111104 commented 11 hours ago

ah okay for my usecase it will be useful especially for the frontend part One of my models classifies their performance over a season and gives them an appropriate rating so if possible can u share the common link

vaastav commented 11 hours ago

You can get the pictures here: https://resources.premierleague.com/premierleague/photos/players/250x250/

For example, consider Bukayo Saka. His image is at "223340.jpg", then his url would be "https://resources.premierleague.com/premierleague/photos/players/250x250/p223340.png"

Basically, you need to add a p before the start of the number and replace .jpg with .png

Ron111104 commented 11 hours ago

okay got it.thanks a lot.