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...

Data

Downloaded 493 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

team pts pos ga gd gf
Manchester City
72
1
20
59
79
Manchester United
56
2
19
32
51
Liverpool
54
3
31
30
61
Chelsea
53
4
23
26
49
Tottenham Hotspur
52
5
24
28
52
Arsenal
45
6
36
15
51
Burnley
36
7
24
-3
21
Leicester City
35
8
40
-1
39
Everton
34
9
46
-14
32
Bournemouth
31
10
41
-10
31

Statistics

Average successful run time: 2 minutes

Total run time: about 1 month

Total cpu time used: 7 minutes

Total disk space used: 27.4 KB

History

  • Auto ran revision 43e89d05 and failed .
    nothing changed in the database
  • Auto ran revision 43e89d05 and completed successfully .
    20 records updated in the database
  • Auto ran revision 43e89d05 and completed successfully .
    nothing changed in the database
  • Auto ran revision 43e89d05 and completed successfully .
    20 records updated in the database
    2 pages scraped
  • Auto ran revision 43e89d05 and failed .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

premier_league_table / scraper.py