Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Getting live football scores

I want to make a website with live football scores and fixtures and then allow users to make make predictions on scores against friends. I was wondering where I would be able to get the data from though. I have had a look around and come up with a few ways. Sky offer a Google calendar that automatically updates which I could use or I was thinking of doing a screen scrape of Fifa's website.

Anyone have an idea of what the best way to go about this would be?

1 Answer

First choose a website where the Scores are displayed correctly and are updated accordingly because if they do not update quickly then your website wont update as well.

See if that website provides an API so that you can plug in to their website to fetch the scores.

When ever you are trying to scrape some data from anywhere, API is the best method, if not then the regular scraping can dp the job. But then if that website changes any code on their website then you would have to change yours too all over the website.

Hope this helps.

Thanks, I'll have a look.