mhl / uk-ynmp-2015-winners

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


Contributors mhl

Last run failed with status code 1.

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  DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.  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  Running command git clone -q http://github.com/openaustralia/scraperwiki-python.git /app/.heroku/src/scraperwiki  Running command git checkout -b morph_defaults --track origin/morph_defaults  Switched to a new branch 'morph_defaults'  Branch morph_defaults set up to track remote branch morph_defaults from origin.  Collecting requests==2.7.0  Downloading requests-2.7.0-py2.py3-none-any.whl (470 kB)  Collecting dumptruck>=0.1.2  Downloading dumptruck-0.1.6.tar.gz (15 kB)  Building wheels for collected packages: dumptruck  Building wheel for dumptruck (setup.py): started  Building wheel for dumptruck (setup.py): finished with status 'done'  Created wheel for dumptruck: filename=dumptruck-0.1.6-py2-none-any.whl size=11844 sha256=d2ee4f7f09358b1a92bc20c7442a7cd5b78a385ae1f7b23535be53655bbc8ed5  Stored in directory: /tmp/pip-ephem-wheel-cache-XlPwy2/wheels/dc/75/e9/1e61c4080c73e7bda99614549591f83b53bcc2d682f26fce62  Successfully built dumptruck  Installing collected packages: dumptruck, requests, scraperwiki  Running setup.py develop for scraperwiki  Successfully installed dumptruck-0.1.6 requests-2.7.0 scraperwiki DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.    -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... Traceback (most recent call last): File "scraper.py", line 17, in <module> for row in csv.DictReader(r.raw): File "/app/.heroku/python/lib/python2.7/csv.py", line 107, in next self.fieldnames File "/app/.heroku/python/lib/python2.7/csv.py", line 90, in fieldnames self._fieldnames = self.reader.next() _csv.Error: line contains NULL byte

Data

Downloaded 1413 times by everypolitician loudspeek-bot mashedkeyboard struan chrismytton mhl

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (181 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
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: 1 day

Total cpu time used: about 1 hour

Total disk space used: 202 KB

History

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

Show complete history

Scraper code

Python

uk-ynmp-2015-winners / scraper.py