Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blablupcom committed Mar 2, 2018
1 parent af0b7b9 commit cd32ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def convert_mth_strings ( mth_string ):
links = soup.findAll('a', href=True)
for ul_link in links:
if 'Payments to suppliers' in ul_link.text and 'CSV' in ul_link.text:
archive_url = 'http://www.leicestershire.gov.uk' + ul_link['href']
archive_url = 'http://www.leicestershire.gov.uk' + ul_link['href'].strip()
title = ul_link.text
csvYr = title.split('(')[0].strip().split()[-1]
csvMth = title.split('(')[0].strip().split()[-2][:3]
Expand Down

0 comments on commit cd32ab0

Please sign in to comment.