We're tired of the ads. We're tired of the blog posts. We just want the recipe!
This is a terminal application that allows you to quickly bypass the junk that plagues most recipe websites. Just run the program and voilà, a pretty-printed recipe is outputted to your terminal. Alternatively, you can save the recipe to a markdown file for later use.
Prerequisites:
Steps:
pure_recipe.py
and requirements.txt
.Install the required Python dependencies:
pip install -r requirements.txt
There are four options: view
, save
, list
, or browse
.
Command:
python pure_recipe.py view [RECIPE_URL]
Example:
python pure_recipe.py view https://www.seriouseats.com/potato-wedges-recipe-5217319
Viewing example:
Command:
python pure_recipe.py save [RECIPE_URL]
Example:
python pure_recipe.py save https://www.seriouseats.com/potato-wedges-recipe-5217319
Saves a recipe from a given URL. The default save location is /home/user/Documents/recipes/
. Change this path in the config.yaml
file, as described below.
Command:
python pure_recipe.py list [FILE_PATH]
Have a whole bunch of recipes that you want to save? Just create a .txt
file with one recipe on each line. Make sure the file is located in your recipe
directory denoted in your config
file. Default location is /home/user/Documents/recipes/
.
Consider an example file called recipes_list.txt
:
https://www.seriouseats.com/beef-braciole-recipe-7561806
https://www.seriouseats.com/basque-cheesecake
https://www.seriouseats.com/omelette-souffle-with-cheese
Then, run the program as follows:
python pure_recipe.py list recipes_list.txt
You should see all recipes on the list saved in markdown format.
The default location is /home/user/Documents/recipes/
. Change this path in the config.yaml
file, as described below.
Command:
python pure_recipe.py browse
Browse and view your saved recipes.
The program will create a config.yaml
file upon its first run. The program should create default settings, placing a recipe
directory in the user's Documents
directory.
If needed, copy and paste the following template into the config file, changing the path to a folder where you want your recipes saved.
---
directory: '/path/to/your/recipes/'
time: true
yield: true
directory
: Path where your recipes are saved.time
: Include preparation and cooking time in the output.yield
: Include the number of servings.More settings are planned for the future.
Check out the list of supported websites for recipe scraping.
There does exist other solutions for bypassing ad-filled recipes --- namely, Paprika. However, you are locked into their ecosystem and exporting the recipes can be troublesome. Plus, there is a subscription fee to use the app on multiple ecosystems/devices.
With Pure Recipe, you can be in charge of your own digital recipe book. By saving the files in Markdown format, you can quickly transfer recipes to a new device. Or, share your well-formatted recipes with family and friends without forcing them to download a propietary app.
Contributions are welcome! If you have a suggestion or want to contribute code, please feel free to make a pull request or open an issue.
Distributed under the MIT License. See LICENSE.txt for more information.