Skip to content

Commit

Permalink
change url
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbradshaw committed Apr 8, 2017
1 parent 3518049 commit 5a01658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scraper.py
Expand Up @@ -22,7 +22,8 @@ def cellval(cell, datemode):
if cell.ctype == xlrd.XL_CELL_BOOLEAN: return cell.value == 1
return cell.value

URL = 'http://transparency.dh.gov.uk/2012/10/26/winter-pressures-daily-situation-reports-2012-13/'
URL = 'http://webarchive.nationalarchives.gov.uk/20130402145952/http://transparency.dh.gov.uk/files/2012/10/DailySR-Pub-file-WE-11-11-123.xls'

#set a variable for the spreadsheet location
XLS = 'https://www.wp.dh.gov.uk/transparency/files/2012/10/DailySR-Pub-file-WE-11-11-123.xls'
#use the scrape function on that spreadsheet to create a new variable
Expand Down Expand Up @@ -103,4 +104,4 @@ def grabexcellinks(URL):

grabexcellinks(URL)

#scrapespreadsheet(XLS)
#scrapespreadsheet(XLS)

0 comments on commit 5a01658

Please sign in to comment.