recipe-scrapers-sage
This is a helper package to save data acquired through recipe-scrapers in a format that is importable by RecipeSage (JSON-LD, implemented here).
Install
pip install recipe-scrapers-sage
Usage
To directly export a scraped recipe, use the export_recipe function:
from recipe_scrapers import scrape_me
from recipe_scrapers_sage import export_recipe
scraper = scrape_me("<RECIPE URL>")
sage_json: dict = export_recipe(scraper)
# write `sage_json` to a file that RecipeSage can import
If you wish to modify a scraped recipe, use the RecipeSage class:
from recipe_scrapers import scrape_me
from recipe_scrapers_sage import RecipeSage
scraper = scrape_me("<RECIPE URL>")
recipe_sage = RecipeSage.from_scraper(scraper)
recipe_sage.creditText = "<CREDIT TEXT>"
sage_json: dict = recipe_sage.to_json_ld()
# write `sage_json` to a file that RecipeSage can import
Metadata
Release files for recipe-scrapers-sage 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| recipe_scrapers_sage-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for recipe_scrapers_sage-0.2.0-py3-none-any.whl |
Release files / recipe_scrapers_sage-0.2.0-py3-none-any.whl
| Download URL | recipe_scrapers_sage-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e11d789894a8bf229b5f0bc668b17ddd0752fb3c3b992026a149c3e889d79b7c
|
|
BLAKE2b-256 checksum How to use checksums |
83df72817f449a34020a808c811c3a073420c6d78bb34def3898435c5d0321d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for recipe-scrapers-sage 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.