walinchus / JSON_Example

UK police


Contributors walinchus

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... [1G [1G-----> Python app detected [1G-----> Installing python-2.7.9 [1G $ pip install -r requirements.txt [1G Obtaining scraperwiki from git+http://github.com/openaustralia/scraperwiki-python.git@morph_defaults#egg=scraperwiki (from -r /tmp/build/requirements.txt (line 6)) [1G Cloning http://github.com/openaustralia/scraperwiki-python.git (to morph_defaults) to /app/.heroku/src/scraperwiki [1G Collecting lxml==3.4.4 (from -r /tmp/build/requirements.txt (line 8)) [1G Downloading lxml-3.4.4.tar.gz (3.5MB) [1G Collecting cssselect==0.9.1 (from -r /tmp/build/requirements.txt (line 9)) [1G Downloading cssselect-0.9.1.tar.gz [1G Collecting dumptruck>=0.1.2 (from scraperwiki->-r /tmp/build/requirements.txt (line 6)) [1G Downloading dumptruck-0.1.6.tar.gz [1G Collecting requests (from scraperwiki->-r /tmp/build/requirements.txt (line 6)) [1G Downloading requests-2.17.3-py2.py3-none-any.whl (87kB) [1G Collecting urllib3<1.22,>=1.21.1 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6)) [1G Downloading urllib3-1.21.1-py2.py3-none-any.whl (131kB) [1G Collecting idna<2.6,>=2.5 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6)) [1G Downloading idna-2.5-py2.py3-none-any.whl (55kB) [1G Collecting certifi>=2017.4.17 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6)) [1G Downloading certifi-2017.4.17-py2.py3-none-any.whl (375kB) [1G Collecting chardet<3.1.0,>=3.0.2 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6)) [1G Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB) [1G Installing collected packages: dumptruck, urllib3, idna, certifi, chardet, requests, scraperwiki, lxml, cssselect [1G Running setup.py install for dumptruck: started [1G Running setup.py install for dumptruck: finished with status 'done' [1G Running setup.py develop for scraperwiki [1G Running setup.py install for lxml: started [1G Running setup.py install for lxml: still running... [1G Running setup.py install for lxml: finished with status 'done' [1G Running setup.py install for cssselect: started [1G Running setup.py install for cssselect: finished with status 'done' [1G Successfully installed certifi-2017.4.17 chardet-3.0.4 cssselect-0.9.1 dumptruck-0.1.6 idna-2.5 lxml-3.4.4 requests-2.17.3 scraperwiki urllib3-1.21.1 [1G [1G [1G-----> Discovering process types [1G Procfile declares types -> scraper Injecting scraper and running... [{u'name': u'Avon and Somerset Constabulary', u'id': u'avon-and-somerset'}, {u'name': u'Bedfordshire Police', u'id': u'bedfordshire'}, {u'name': u'Cambridgeshire Constabulary', u'id': u'cambridgeshire'}, {u'name': u'Cheshire Constabulary', u'id': u'cheshire'}, {u'name': u'City of London Police', u'id': u'city-of-london'}, {u'name': u'Cleveland Police', u'id': u'cleveland'}, {u'name': u'Cumbria Constabulary', u'id': u'cumbria'}, {u'name': u'Derbyshire Constabulary', u'id': u'derbyshire'}, {u'name': u'Devon & Cornwall Police', u'id': u'devon-and-cornwall'}, {u'name': u'Dorset Police', u'id': u'dorset'}, {u'name': u'Durham Constabulary', u'id': u'durham'}, {u'name': u'Dyfed-Powys Police', u'id': u'dyfed-powys'}, {u'name': u'Essex Police', u'id': u'essex'}, {u'name': u'Gloucestershire Constabulary', u'id': u'gloucestershire'}, {u'name': u'Greater Manchester Police', u'id': u'greater-manchester'}, {u'name': u'Gwent Police', u'id': u'gwent'}, {u'name': u'Hampshire Constabulary', u'id': u'hampshire'}, {u'name': u'Hertfordshire Constabulary', u'id': u'hertfordshire'}, {u'name': u'Humberside Police', u'id': u'humberside'}, {u'name': u'Kent Police', u'id': u'kent'}, {u'name': u'Lancashire Constabulary', u'id': u'lancashire'}, {u'name': u'Leicestershire Police', u'id': u'leicestershire'}, {u'name': u'Lincolnshire Police', u'id': u'lincolnshire'}, {u'name': u'Merseyside Police', u'id': u'merseyside'}, {u'name': u'Metropolitan Police Service', u'id': u'metropolitan'}, {u'name': u'Norfolk Constabulary', u'id': u'norfolk'}, {u'name': u'North Wales Police', u'id': u'north-wales'}, {u'name': u'North Yorkshire Police', u'id': u'north-yorkshire'}, {u'name': u'Northamptonshire Police', u'id': u'northamptonshire'}, {u'name': u'Northumbria Police', u'id': u'northumbria'}, {u'name': u'Nottinghamshire Police', u'id': u'nottinghamshire'}, {u'name': u'Police Service of Northern Ireland', u'id': u'northern-ireland'}, {u'name': u'South Wales Police', u'id': u'south-wales'}, {u'name': u'South Yorkshire Police', u'id': u'south-yorkshire'}, {u'name': u'Staffordshire Police', u'id': u'staffordshire'}, {u'name': u'Suffolk Constabulary', u'id': u'suffolk'}, {u'name': u'Surrey Police', u'id': u'surrey'}, {u'name': u'Sussex Police', u'id': u'sussex'}, {u'name': u'Thames Valley Police', u'id': u'thames-valley'}, {u'name': u'Warwickshire Police', u'id': u'warwickshire'}, {u'name': u'West Mercia Police', u'id': u'west-mercia'}, {u'name': u'West Midlands Police', u'id': u'west-midlands'}, {u'name': u'West Yorkshire Police', u'id': u'west-yorkshire'}, {u'name': u'Wiltshire Police', u'id': u'wiltshire'}] 44 Avon and Somerset Constabulary Bedfordshire Police Cambridgeshire Constabulary Cheshire Constabulary City of London Police Cleveland Police Cumbria Constabulary Derbyshire Constabulary Devon & Cornwall Police Dorset Police Durham Constabulary Dyfed-Powys Police Essex Police Gloucestershire Constabulary Greater Manchester Police Gwent Police Hampshire Constabulary Hertfordshire Constabulary Humberside Police Kent Police Lancashire Constabulary Leicestershire Police Lincolnshire Police Merseyside Police Metropolitan Police Service Norfolk Constabulary North Wales Police North Yorkshire Police Northamptonshire Police Northumbria Police Nottinghamshire Police Police Service of Northern Ireland South Wales Police South Yorkshire Police Staffordshire Police Suffolk Constabulary Surrey Police Sussex Police Thames Valley Police Warwickshire Police West Mercia Police West Midlands Police West Yorkshire Police Wiltshire Police This is Wiltshire It contains 'wilt'

Data

Downloaded 0 times

To download data sign in with GitHub

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

rows 10 / 44

idcode fullname
avon-and-somerset
Avon and Somerset Constabulary
bedfordshire
Bedfordshire Police
cambridgeshire
Cambridgeshire Constabulary
cheshire
Cheshire Constabulary
city-of-london
City of London Police
cleveland
Cleveland Police
cumbria
Cumbria Constabulary
derbyshire
Derbyshire Constabulary
devon-and-cornwall
Devon & Cornwall Police
dorset
Dorset Police

Statistics

Average successful run time: 2 minutes

Total run time: 2 minutes

Total cpu time used: less than 5 seconds

Total disk space used: 25.3 KB

History

  • Manually ran revision 12f8835d and completed successfully .
    44 records added in the database
  • Created on morph.io

Scraper code

JSON_Example