View on GitHub

RecipeParser

Organize your favorite recipes in a markdown recipe book!

download .ZIPdownload .TGZ

My Recipes

About

A python script that parses recipe websites to create markdown files with essential recipe information, like ingredients, instructions, and a photo of course! I made this so I can keep all of my favorite recipes organized in a psuedo recipe book.

Dependencies

Python == 3.4.3

BeautifulSoup4 (pip install bs4)

Supported Recipe Websites

Usage

file: A text file containing recipe urls from the supported websites

file = "/Users/you/anywhere/recipes.txt"
if main(file):
    print("Success")

If generating the markdown files is a success you will see a success message, otherwise you'll see which markdown files weren't generated and the corresponding error messages.

recipes.txt

http://food52.com/recipes/31276-oatmeal-cream-pies#comments
http://www.food.com/recipe/tsr-version-of-benihana-japanese-onion-soup-by-todd-wilbur-391952
http://allrecipes.com/recipe/41460/sweet-corn-tomalito/
http://www.sweetandsavorybyshinee.com/lemon-french-macarons/
http://www.foodnetwork.com/recipes/mock-garlic-mashed-potatoes-recipe.html
http://www.marthastewart.com/1075067/stuffed-tomatoes-mozzarella