Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Feb 18, 2017
0 parents commit ca2eaeb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
# Ignore output of scraper
data.sqlite
3 changes: 3 additions & 0 deletions README.md
@@ -0,0 +1,3 @@
Scrape polling station and district meta-data from Uttlesford District Council

This is a scraper that runs on [Morph](https://morph.io). To get started [see the documentation](https://morph.io/documentation)
2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
git+https://github.com/chris48s/arcgis2geojson.git
git+https://github.com/wdiv-scrapers/dc-base-scrapers.git
1 change: 1 addition & 0 deletions runtime.txt
@@ -0,0 +1 @@
python-3.4.3
12 changes: 12 additions & 0 deletions scraper.py
@@ -0,0 +1,12 @@
from dc_base_scrapers.hashonly_scraper import HashOnlyScraper


stations_url = "http://www.uttlesford.gov.uk/CHttpHandler.ashx?id=6593&p=0"
districts_url = "http://www.uttlesford.gov.uk/CHttpHandler.ashx?id=6594&p=0"
council_id = 'E07000077'


stations_scraper = HashOnlyScraper(stations_url, council_id, 'stations')
stations_scraper.scrape()
districts_scraper = HashOnlyScraper(districts_url, council_id, 'districts')
districts_scraper.scrape()

0 comments on commit ca2eaeb

Please sign in to comment.