Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahed committed Nov 4, 2015
1 parent 6eb204a commit e443342
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scraper.py
Expand Up @@ -114,10 +114,10 @@ def date(dat):
return Date

def dateClean(dat):
d=dat.split(' ')
d=dat.split(" ")
months = dict()
months = {'01': 'January', '02': 'February', '03': 'March', '04': 'April', '05': 'May', '06': 'June', '07': 'July', '08': 'August', '09': 'September', '10': 'October', '11': 'November', '12': 'December' }
date = d[2] + "-" + months[d[1] + "-" + d[0]
months = { 'January':'01','February':'02','March':'03','April':'04','May':'05','June':'06','July':'07','August':'08','September':'09','October':'10', 'November':'11', 'December':'12' }
date = d[2] + "-" + months[d[1]] + "-" + d[0]
return date


Expand Down Expand Up @@ -341,7 +341,7 @@ def extract_data(url,Id):
if el=="live":
Id=Id+1
scrap_live(j,Id)
print("live "+j)
print(Id+" live "+j)
else :
if el=="recurring":
Id=Id+1
Expand Down

0 comments on commit e443342

Please sign in to comment.