Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sstarcher/paprika-exporter
Export recipe data out of Paprika into YAML
https://github.com/sstarcher/paprika-exporter
Last synced: 19 days ago
JSON representation
Export recipe data out of Paprika into YAML
- Host: GitHub
- URL: https://github.com/sstarcher/paprika-exporter
- Owner: sstarcher
- License: apache-2.0
- Created: 2019-12-31T17:22:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T01:48:06.000Z (7 months ago)
- Last Synced: 2024-04-23T19:02:47.206Z (7 months ago)
- Language: Python
- Size: 38.1 KB
- Stars: 12
- Watchers: 7
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Paprika Exporter
Export Paprika data using the API to yaml
# Introduction
This tool statically generates a list of Paprika recipes in YAML format, with a related folder of images.
# Installation
pip3 install papexp
# Github Action
In order to use the recipes.yml GitHub Action included with the repository you must create repository secrets with your Paprika EMAIL and PASSWORD
# Issues
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.
# Example python code
import papexp
from papexp import core
papexp.core.checkandrun()# Examples on the web
You can see this code live [here](https://shanestarcher.com/recipes) or on [chrisfnicholson.com][1].
The recipes exporter using Paprika Exporter are [here](https://github.com/sstarcher/sstarcher.github.io/blob/source/_data/recipes.yaml)
The repository for [chrisfnicholson.com][2] incorporates this code to routinely pull new recipes.
This code is almost entirely the work of [Shane Starcher][3] with additions by [Chris Nicholson][4].
The goal with this package is to make implementation of this code on your website dead simple.
[1]: https://chrisfnicholson.com/recipes/
[2]: http://www.github.com/datapolitical/chrisfnicholson.github.io
[3]: https://github.com/sstarcher
[4]: https://github.com/datapolitical