Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
blablupcom committed Jan 15, 2016
1 parent f9dd4ac commit 75c0607
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,12 @@ def convert_mth_strings ( mth_string ):


#### SCRAPE DATA
print soup

blocks = soup.find('a', id='Trust').find_all_next('a')
for block in blocks:
if '20' in block.text and '.csv' in block['href'] or '.xls' in block['href'] or '.xlsx' in block['href']:
link = 'http://www.lewishamandgreenwich.nhs.uk'+block['href']
title = block.text.strip()
print title
csvMth = title[:3]
csvYr = title[-4:]
csvMth = convert_mth_strings(csvMth.upper())
Expand Down

0 comments on commit 75c0607

Please sign in to comment.