HackerShackOfficial / Smart-Mirror

Raspberry powered mirror which can display news, weather, calendar events
MIT License
907 stars 383 forks source link

Adding a Sports widget #76

Open tony1550 opened 6 years ago

tony1550 commented 6 years ago

Hi, Has anyone been able to add a sports feed or widget to the project? It would be nice to add like a favorite teams and score updates. If anyone has done this, please let me know. Thanks!

markferreira01 commented 6 years ago

You could probably replace the news with sports headlines, by plugging in the rss url into the get_headlines method under the News class. I haven't tried it, but I switched my mirror to pull from google.

bootyman4000 commented 6 years ago

I tried switching my newsfeed to google, but did not have any luck. I basically replaced the existing url with google's rss feed url, and it did not work. I started from scratch to see if I could get it to work properly (have yet to re-attempt it as I'm trying to get the basic page working with weather).

tony1550 commented 6 years ago

Yeah, I have tried using different RSS url's for strictly sports but none seem to work. Not sure what format it needs to be in.

keroe commented 5 years ago

I got a sport news feed working for the german Bundesliga. The best solution is to find a sport newspaper in your language and look for their rss feed. Then you can simply exchange the url. Otherwise you can write a web scrapper and search for a website with the scores of your favourite league and extract them from there. I did that for german handball bundesliga.