walinchus / JSON_Example

UK police


Contributors walinchus

Last run completed successfully .

Console output of last run

Injecting configuration and compiling...  -----> Python app detected -----> Installing python-2.7.9  $ pip install -r requirements.txt  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 morph_defaults) to /app/.heroku/src/scraperwiki  Collecting lxml==3.4.4 (from -r /tmp/build/requirements.txt (line 8))  Downloading lxml-3.4.4.tar.gz (3.5MB)  Collecting cssselect==0.9.1 (from -r /tmp/build/requirements.txt (line 9))  Downloading cssselect-0.9.1.tar.gz  Collecting dumptruck>=0.1.2 (from scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading dumptruck-0.1.6.tar.gz  Collecting requests (from scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading requests-2.17.3-py2.py3-none-any.whl (87kB)  Collecting urllib3<1.22,>=1.21.1 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading urllib3-1.21.1-py2.py3-none-any.whl (131kB)  Collecting idna<2.6,>=2.5 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading idna-2.5-py2.py3-none-any.whl (55kB)  Collecting certifi>=2017.4.17 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading certifi-2017.4.17-py2.py3-none-any.whl (375kB)  Collecting chardet<3.1.0,>=3.0.2 (from requests->scraperwiki->-r /tmp/build/requirements.txt (line 6))  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)  Installing collected packages: dumptruck, urllib3, idna, certifi, chardet, requests, scraperwiki, lxml, cssselect  Running setup.py install for dumptruck: started  Running setup.py install for dumptruck: finished with status 'done'  Running setup.py develop for scraperwiki  Running setup.py install for lxml: started  Running setup.py install for lxml: still running...  Running setup.py install for lxml: finished with status 'done'  Running setup.py install for cssselect: started  Running setup.py install for cssselect: finished with status 'done'  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   -----> Discovering process types  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