Fantasy – a Ruby library for scraping Fantasy Premier League

The Fantasy Premier League site has one (quite strange) limitation – the mini league tables aren’t updated live even though the actual team pages are. This makes it a chore to stay updated on how you’re doing compared to your mini league buddies. So I created a small Ruby library to scrape information from the Premier League website and then present it in whichever way is wanted.

The library is available at http://github.com/evenv/fantasy.

It’s released under the MIT license, so feel free to use it for whatever you’d like.

I’ve included the Sinatra app I created along with the library to show updated points for a list of teams. It’s not particularly advanced, but does the trick for me (and works pretty well on the iPhone).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s