Export Paprika data using the API to yaml
This tool statically generates a list of Paprika recipes in YAML format, with a related folder of images.
pip3 install papexp
In order to use the recipes.yml GitHub Action included with the repository you must create repository secrets with your Paprika EMAIL and PASSWORD
Make sure to completely delete any recipes from the trash in the Paprika app because it can cause errors when exporting your recipes.
This code places the recipes yaml file in the _data/ directory, and creates it if it does not exist.
This code puts image files into assets/images/recipes, and creates that folder if it does not exist. This is not compatible with the original sstarcher code which used "images/recipes". You may need to relocate these files after retreval if it does not match your required file path.
import papexp from papexp import core papexp.core.checkandrun()
You can see this code live here or on chrisfnicholson.com.
The recipes exporter using Paprika Exporter are here
The repository for chrisfnicholson.com incorporates this code to routinely pull new recipes.
This code is almost entirely the work of Shane Starcher with additions by Chris Nicholson.
The goal with this package is to make implementation of this code on your website dead simple.