Skip to content

Commit

Permalink
More tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
ostephens committed May 14, 2016
1 parent b81179e commit bff0f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -13,7 +13,7 @@ def scrape_recipe(recipe_url) :
#print "Scraping recipe microdata: " + recipe_url
items = microdata.get_items(urllib.urlopen(recipe_url))
for item in items:
print "Scraping: " + item.name + "from" + recipe_url
print "Scraping: " + item.name + " from " + recipe_url
recipe_model = { "url" : recipe_url, "name" : item.name, "recipe" : item.json() }
scraperwiki.sqlite.save(unique_keys=["url"], table_name="recipes", data=recipe_model)
return True
Expand Down

0 comments on commit bff0f9b

Please sign in to comment.