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 26, 2015
1 parent 6c4e0f2 commit 61ec676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -11,9 +11,9 @@ def get_Id(url):
return d[1]

def dateclean(date):
d=date.split(' ')
d=date.split('\"')
a=d[1].split('-')
return a[2]+'-'+d[1]+'-'+d[0]
return a[2]+'-'+a[1]+'-'+a[0]

def scrap(url):
response = urlopen(url)
Expand Down

0 comments on commit 61ec676

Please sign in to comment.