Skip to content

Commit

Permalink
Added robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongs authored and jacksongs committed Mar 27, 2016
1 parent ce9da8c commit eb77792
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@
}
prod = {
'title': product['title'],
'asin': product['asin'],
'release_date': product['release_date'],
'publisher_name': product['publisher_name']
'asin': product['asin']
}
try:
prod['release_date'] = product['release_date']
except:
pass
try:
prod['publisher_name'] = product['publisher_name']
except:
pass
try:
prod['runtime_length_min'] = product['runtime_length_min']
except:
Expand Down

0 comments on commit eb77792

Please sign in to comment.