Python API to access the Allrecipes platform.
Project description
Py Allrecipes
Py Allrecipes is a Python package for searching and extracting structured recipe data from Allrecipes.com.
- Search for recipes by keyword
- Extract ingredients, steps, times, servings, and yield from any recipe page
- Output is robust and structured for easy use in your own projects
Features
search_recipes(query): Search Allrecipes and get a list of recipe titles, URLs, and ratingsget_recipe(url): Fetch and parse a recipe page for all details (ingredients, steps, times, servings, yield)
Quickstart
import py_allrecipes
results = py_allrecipes.search_recipes('chocolate cake')
url = results[0]['url']
recipe = py_allrecipes.get_recipe(url)
print(recipe['title'])
print(recipe['ingredients'])
print(recipe['steps'])
print(recipe['details'])
Documentation
See the full documentation for more details and usage examples.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_allrecipes-1.0.0.tar.gz
(13.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_allrecipes-1.0.0.tar.gz.
File metadata
- Download URL: py_allrecipes-1.0.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
218906aade972b3338222bff17e06c51dacbe50b659ccec5715aead27e920a44
|
|
| MD5 |
93228acbcfed9394a82014031c0af94e
|
|
| BLAKE2b-256 |
7f167dd8639bb57d78d0832af9b8e9eef5460731350f85cc11da3734b3031e0b
|
File details
Details for the file py_allrecipes-1.0.0-py3-none-any.whl.
File metadata
- Download URL: py_allrecipes-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90845db9e387ea3f3ca7a5aca10355eea576b60280e1198440dc13d1c706176e
|
|
| MD5 |
5565de12ddd1790cfb1a514865aa44b7
|
|
| BLAKE2b-256 |
13a2b15c533e24c8a84bf880ec78e3d6e4b344841c1e2234eddab2c6f1af4ccf
|