Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbradshaw committed Apr 3, 2017
1 parent ad6c3b1 commit b4b5fa3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
import csv
data = scraperwiki.scrape('https://data.birmingham.gov.uk/dataset/14492d37-1a77-4d46-9204-27363fc62149/resource/bacf38dd-3530-4c95-a0c3-83e21c9b2259/download/sgmsreportsvcsfreportsvcsfreports201415vcsfreport2014qtr1final.csv')

reader = csv.DictReader(data.splitlines())
reader = csv.DictReader(data.splitlines(), fieldnames=("ref", "org", "status", "start", "end", "revised end", "directorate" "actual award"))

for row in reader[0]:
for key, value in row.iteritems():
print key

for row in reader:
#for key, value in row.iteritems():
Expand Down

0 comments on commit b4b5fa3

Please sign in to comment.