mhl / uk-ynmp-2015-winners

A trivial scraper to change the format of the elected candidates CSV file from YourNextMP in 2015

Scrapes candidates.democracyclub.org.uk

Democracy Club Candidates


Contributors mhl

Last run completed successfully .

Console output of last run

Injecting configuration and compiling...  -----> Python app detected  ! The latest version of Python 2 is python-2.7.14 (you are using python-2.7.12, which is unsupported).  ! We recommend upgrading by specifying the latest version (python-2.7.14).  Learn More: https://devcenter.heroku.com/articles/python-runtimes -----> Installing python-2.7.12 -----> Installing pip -----> Installing requirements with pip  Obtaining scraperwiki from git+http://github.com/openaustralia/scraperwiki-python.git@morph_defaults#egg=scraperwiki (from -r /tmp/build/requirements.txt (line 6))  Cloning http://github.com/openaustralia/scraperwiki-python.git (to revision morph_defaults) to /app/.heroku/src/scraperwiki  Collecting requests==2.7.0 (from -r /tmp/build/requirements.txt (line 8))  Downloading https://files.pythonhosted.org/packages/26/ff/c71b3943bebdd9f7ceb9e137296370587eb0b33fe2eb3732ae168bc45204/requests-2.7.0-py2.py3-none-any.whl (470kB)  Collecting dumptruck>=0.1.2 (from scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading https://files.pythonhosted.org/packages/15/27/3330a343de80d6849545b6c7723f8c9a08b4b104de964ac366e7e6b318df/dumptruck-0.1.6.tar.gz  Installing collected packages: dumptruck, requests, scraperwiki  Running setup.py install for dumptruck: started  Running setup.py install for dumptruck: finished with status 'done'  Running setup.py develop for scraperwiki  Successfully installed dumptruck-0.1.6 requests-2.7.0 scraperwiki   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running...

Data

Downloaded 578 times by everypolitician struan chrismytton mhl

To download data sign in with GitHub

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

rows 10 / 650

twitter image birth_date id linkedin facebook name wikipedia wikiname
SKinnock
1970-01-01
25297
Stephen Kinnock
Stephen Kinnock
GutoAberconwy
1968-10-09
24736
Guto Bebb
Guto Bebb
KirstySNP
1986
25314
Kirsty Blackman
Kirsty Blackman
callum_mccaig
1985-01-06
25400
Callum McCaig
Callum McCaig
NeilGrayMP
1986-03-16
25293
Neil Gray
Neil Gray
geraldhowarth
1947-09-12
10293
Gerald Howarth
Gerald Howarth
morton_wendy
1967-11-09
25342
Wendy Morton
Wendy Morton
Graham__Brady
1967-05-20
10062
Graham Brady
Graham Brady
MarkTamiMP
1962-10-03
11267
Mark Tami
Mark Tami
24965
Nigel Mills
Nigel Mills %28politician%29

Statistics

Average successful run time: 1 minute

Total run time: about 11 hours

Total cpu time used: about 1 hour

Total disk space used: 197 KB

History

  • Auto ran revision e27ee9d0 and completed successfully .
    650 records added, 650 records removed in the database
    1 page scraped
  • Auto ran revision e27ee9d0 and completed successfully .
    650 records added, 650 records removed in the database
    1 page scraped
  • Auto ran revision e27ee9d0 and completed successfully .
    650 records added, 650 records removed in the database
    1 page scraped
  • Auto ran revision e27ee9d0 and completed successfully .
    650 records added, 650 records removed in the database
    1 page scraped
  • Auto ran revision e27ee9d0 and completed successfully .
    650 records added, 650 records removed in the database
    1 page scraped
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

uk-ynmp-2015-winners / scraper.py