A simple web scraping tool for recipe sites.
then:
from recipe_scrapers import scrape_me
# give the url as a string, it can be url from any site listed below
scraper = scrape_me('http://allrecipes.com/Recipe/Apple-Cake-Iv/Detail.aspx')
scraper.title()
scraper.total_time()
scraper.yields()
scraper.ingredients()
scraper.instructions()
scraper.image()
scraper.links()
Note: scraper.links()
returns a dictionary object containing all of the <a> tag attributes. The attribute names are the dictionary keys.
Note : The functions will return 0 or None if certain information isn't available on the website.
- http://allrecipes.com/
- http://bbc.com/
- http://bbc.co.uk/
- http://bbcgoodfood.com/
- http://bettycrocker.com/
- http://bonappetit.com/
- https://www.budgetbytes.com/
- http://closetcooking.com/
- http://cookstr.com/
- http://copykat.com/
- http://delish.com/
- http://epicurious.com/
- https://food.com/
- http://foodnetwork.com/
- http://foodrepublic.com/
- http://tasty.co//