Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherubi committed Nov 17, 2014
1 parent f1dfb4d commit 6dfbbcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Expand Up @@ -272,7 +272,7 @@ def info_collection(url,firstname,lastname,id):
# START
print 'Last name collection was %d days ago' % dateDiff.days

if int(dateDiff.days) > days_between_name_collection: # was <
if int(dateDiff.days) < days_between_name_collection:
print "Davide: No name collection today. Next name collection in" , 30 - dateDiff.days, " day(s)"
print
print 'Get MEPs that have not been updated in 7+ days (or so) and fetch their info'
Expand All @@ -293,6 +293,7 @@ def info_collection(url,firstname,lastname,id):
print name['firstname'], name['lastname'], " is up to date. On to the next one"
else:
print name['firstname'], name['lastname'], " Is not up to date. Let's process ..."
print "URL ", name['detail_url']
info_collection(name['detail_url'],name['firstname'],name['lastname'],name['id'])
else:

Expand Down

0 comments on commit 6dfbbcd

Please sign in to comment.