Permalink
Browse files

Update scraper.py

  • Loading branch information...
blablupcom committed Apr 13, 2017
1 parent 9f2d773 commit 5c022500c3383caf8a4389f97e5223c329fb8cb6
Showing with 1 addition and 1 deletion.
  1. +1 −1 scraper.py
View
@@ -100,7 +100,7 @@ def convert_mth_strings ( mth_string ):
for block in blocks:
link = block.find_next('a').find_next('a')['href']
if '.csv' in link or '.xlsx' in link or '.xls' in link:
link_text = block.select_one('span.inner-cell').text.replace(' return', '').strip()
link_text = block.find('span', 'inner-cell').text.replace(' return', '').strip()
csvYr = link_text.split()[-1]
csvMth = link_text.split()[-2][:3]
if 'to 11th May 2010' in block.find('span','inner-cell').text.strip():

0 comments on commit 5c02250

Please sign in to comment.