chris48s / DC-PollingStations-Kingston-Stations

Polling Station data for London Borough of Kingston


Scrape polling station locations from LB Kingston's ArcGIS server

This is a scraper that runs on Morph. To get started see the documentation

Contributors chris48s

Last run completed successfully .

Console output of last run

Injecting configuration and compiling... -----> Python app detected -----> Stack changed, re-installing runtime -----> Installing runtime (python-3.4.3) -----> Installing dependencies with pip  Collecting scraperwiki==0.5.1 (from -r requirements.txt (line 1))  Downloading scraperwiki-0.5.1.tar.gz  Collecting geojson==1.3.3 (from -r requirements.txt (line 2))  Downloading geojson-1.3.3-py2.py3-none-any.whl  Collecting requests (from scraperwiki==0.5.1->-r requirements.txt (line 1))  Downloading requests-2.10.0-py2.py3-none-any.whl (506kB)  Collecting six (from scraperwiki==0.5.1->-r requirements.txt (line 1))  Downloading six-1.10.0-py2.py3-none-any.whl  Collecting sqlalchemy (from scraperwiki==0.5.1->-r requirements.txt (line 1))  Downloading SQLAlchemy-1.0.14.tar.gz (4.8MB)  Collecting alembic (from scraperwiki==0.5.1->-r requirements.txt (line 1))  Downloading alembic-0.8.7.tar.gz (968kB)  Collecting Mako (from alembic->scraperwiki==0.5.1->-r requirements.txt (line 1))  Downloading Mako-1.0.4.tar.gz (574kB)  Collecting python-editor>=0.3 (from alembic->scraperwiki==0.5.1->-r requirements.txt (line 1))  Downloading python-editor-1.0.1.tar.gz  Collecting MarkupSafe>=0.9.2 (from Mako->alembic->scraperwiki==0.5.1->-r requirements.txt (line 1))  Downloading MarkupSafe-0.23.tar.gz  Installing collected packages: MarkupSafe, python-editor, Mako, alembic, sqlalchemy, six, requests, geojson, scraperwiki  Running setup.py install for MarkupSafe  building 'markupsafe._speedups' extension  gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/app/.heroku/python/include/python3.4m -c markupsafe/_speedups.c -o build/temp.linux-x86_64-3.4/markupsafe/_speedups.o  gcc -pthread -shared build/temp.linux-x86_64-3.4/markupsafe/_speedups.o -L/app/.heroku/python/lib -lpython3.4m -o build/lib.linux-x86_64-3.4/markupsafe/_speedups.cpython-34m.so  Running setup.py install for python-editor  Running setup.py install for Mako  Installing mako-render script to /app/.heroku/python/bin  Running setup.py install for alembic  Installing alembic script to /app/.heroku/python/bin  Running setup.py install for sqlalchemy  building 'sqlalchemy.cprocessors' extension  gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/app/.heroku/python/include/python3.4m -c lib/sqlalchemy/cextension/processors.c -o build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/processors.o  gcc -pthread -shared build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/processors.o -L/app/.heroku/python/lib -lpython3.4m -o build/lib.linux-x86_64-3.4/sqlalchemy/cprocessors.cpython-34m.so  building 'sqlalchemy.cresultproxy' extension  gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/app/.heroku/python/include/python3.4m -c lib/sqlalchemy/cextension/resultproxy.c -o build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/resultproxy.o  gcc -pthread -shared build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/resultproxy.o -L/app/.heroku/python/lib -lpython3.4m -o build/lib.linux-x86_64-3.4/sqlalchemy/cresultproxy.cpython-34m.so  building 'sqlalchemy.cutils' extension  gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/app/.heroku/python/include/python3.4m -c lib/sqlalchemy/cextension/utils.c -o build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/utils.o  gcc -pthread -shared build/temp.linux-x86_64-3.4/lib/sqlalchemy/cextension/utils.o -L/app/.heroku/python/lib -lpython3.4m -o build/lib.linux-x86_64-3.4/sqlalchemy/cutils.cpython-34m.so     Running setup.py install for scraperwiki  Successfully installed Mako-1.0.4 MarkupSafe-0.23 alembic-0.8.7 geojson-1.3.3 python-editor-1.0.1 requests-2.10.0 scraperwiki-0.5.1 six-1.10.0 sqlalchemy-1.0.14  -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running...

Data

Downloaded 2 times by chris48s

To download data sign in with GitHub

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

rows 10 / 53

location postcode council_id address internal_council_id polling_district_id
{"coordinates": [518476.35, 163527.305], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT9 2DR
E09000021
St Mary's Centre Church Lane Chessington
DB
DB
{"coordinates": [518810.956, 166015.404], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT6 7SB
E09000021
The Corner House Douglas Road Entrance Surbiton
MB
MB
{"coordinates": [518581.912, 166531.018], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT6 6JZ
E09000021
St Matthew's Church St Matthew's Avenue Surbiton
MA
MA
{"coordinates": [518429.823, 166779.688], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT6 6LW
E09000021
St Matthew`s C of E School Langley Road Surbiton
M
M
{"coordinates": [517655.214, 163653.558], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT9 2HY
E09000021
St Catherines Church Hall 98 Leatherhead Road Chessington
D
D
{"coordinates": [518747.778, 164071.45], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT9 2DJ
E09000021
Chessington Methodist Church Hall Church Lane Chessington
DA
DA
{"coordinates": [517287.68, 161884.632], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT9 2NG
E09000021
Caravan at the Chessington Garden Centre Leatherhead Road Malden Rushett
DC
DC
{"coordinates": [519702.122, 167967.266], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT5 8LS
E09000021
Berrylands Hotel Chiltern Drive
A
A
{"coordinates": [517829.497, 168349.709], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT1 2NA
E09000021
St Raphael's Catholic Church Hall Portsmouth Road Kingston upon Thames
EB
EB
{"coordinates": [517996.978, 169154.837], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::27700"}, "type": "name"}, "type": "Point"}
KT1 1HZ
E09000021
United Reformed Church 11 Eden Street Kingston upon Thames
E
E

Statistics

Average successful run time: 1 minute

Total run time: 1 minute

Total cpu time used: less than 5 seconds

Total disk space used: 40 KB

History

  • Manually ran revision 98b87b94 and completed successfully .
    53 records added in the database
  • Created on morph.io