jschultz38 / degenbot

Fetch game times for select degenz
1 stars 0 forks source link

Grabbing image from schedule page and updating the image hardcoded in… #79

Closed Fountai2 closed 2 months ago

Fountai2 commented 2 months ago

… teams.

Leaving the hardcoded images gives us a fallback if there is no image.

Fountai2 commented 2 months ago

I'm thinking with pride and SD it's not worth scraping.

We can do a lookup by team ID but that would need to be hardcoded - and those might change in the future season, or are more likely to change than team logos

Searching the schedule page for all of the teams is possible but it's a little fuzzy to try to associate a team name with the URLs - because its strings it could introduce a lot of weird cases depending on the images that get uploaded and the team names,

Kraken is the only league where teams can control their logos and team IDs are unlikely to change.