Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blablupcom committed Feb 19, 2018
1 parent ee4ecd7 commit 8db0c96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def convert_mth_strings ( mth_string ):
else:
csvYr = title.split(' ')[-2]
csvMth = title.split(' ')[-3][:3]
if 'sup' in csvMth:
csvMth = csvYr[:3]
csvYr = csvYr.split()[0][-4:]
csvMth = convert_mth_strings(csvMth.upper())
todays_date = str(datetime.now())
data.append([csvYr, csvMth, url])
Expand All @@ -137,4 +140,3 @@ def convert_mth_strings ( mth_string ):


#### EOF

0 comments on commit 8db0c96

Please sign in to comment.