Skip to main content

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 ratings
  • get_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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_allrecipes-1.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for py_allrecipes-1.1.0.tar.gz
Algorithm Hash digest
SHA256 61ac92ffff29d4d6e8a51969b95d8a2944424cdf62459e04f47d6ab31cd54f13
MD5 c53383400d3c4a4607f4b5407ed0e5f8
BLAKE2b-256 4915d1c2c7f870294925739b9f34dcdd202f448f9c79a8a5fee7f665249ef226

See more details on using hashes here.

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

Hashes for py_allrecipes-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abbf6b42b77b584806fa1815772f15e9b8c94e719360fc0e764206e78863c2f3
MD5 cac3b1bc1c92382ecde0cf486ac94f38
BLAKE2b-256 27b5d7489bafe4258918f619bd3f8ec73939351c2e3579debfd6c3fd23eaca22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page