residuum / premier_league_table

Downloads the data from the premier league on a daily basis.


This is a scraper that runs on Morph. To get started see the documentation.

This scraper downloads the current table of the English Football Premier League and stores it in a database. The data is then accessed via a JSON API for sonification with libPd.

The table is output as an array with each team being an object with the following format:

{
  pos: <integer, position 1-20>,
  team: <string, team name>,
  pts: <integer, points>,
  gf: <integer, goals for>,
  ga: <integer, goals against>,
  gd: <integer, goal difference>
}

Contributors residuum

Last run failed with status code 255.

Console output of last run

Injecting configuration and compiling...  -----> Python app detected -----> Installing python-3.6.2  ! Requested runtime (python-3.6.2) is not available for this stack (cedar-14).  ! Aborting. More info: https://devcenter.heroku.com/articles/python-support

Data

Downloaded 577 times by residuum MikeRalphson

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (3 KB) Use the API

rows 10 / 20

pos pts team ga gf gd
1
0
Arsenal
0
0
0
2
0
Aston Villa
0
0
0
3
0
Bournemouth
0
0
0
4
0
Brentford
0
0
0
5
0
Brighton and Hove Albion
0
0
0
6
0
Chelsea
0
0
0
7
0
Crystal Palace
0
0
0
8
0
Everton
0
0
0
9
0
Fulham
0
0
0
10
0
Leeds United
0
0
0

Statistics

Average successful run time: 2 minutes

Total run time: about 1 month

Total cpu time used: 23 minutes

Total disk space used: 31.8 KB

History

  • Auto ran revision e28c6260 and failed .
    nothing changed in the database
  • Auto ran revision e28c6260 and failed .
    nothing changed in the database
  • Auto ran revision e28c6260 and failed .
    nothing changed in the database
  • Auto ran revision e28c6260 and failed .
    nothing changed in the database
  • Auto ran revision e28c6260 and failed .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

premier_league_table / scraper.py