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.1.0.tar.gz
(13.6 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.1.0.tar.gz.
File metadata
- Download URL: py_allrecipes-1.1.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61ac92ffff29d4d6e8a51969b95d8a2944424cdf62459e04f47d6ab31cd54f13
|
|
| MD5 |
c53383400d3c4a4607f4b5407ed0e5f8
|
|
| BLAKE2b-256 |
4915d1c2c7f870294925739b9f34dcdd202f448f9c79a8a5fee7f665249ef226
|
File details
Details for the file py_allrecipes-1.1.0-py3-none-any.whl.
File metadata
- Download URL: py_allrecipes-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abbf6b42b77b584806fa1815772f15e9b8c94e719360fc0e764206e78863c2f3
|
|
| MD5 |
cac3b1bc1c92382ecde0cf486ac94f38
|
|
| BLAKE2b-256 |
27b5d7489bafe4258918f619bd3f8ec73939351c2e3579debfd6c3fd23eaca22
|