Skip to main content
Github Version PyPI - Python Version GitHub Actions Unittests Coveralls License

Installation

pip install recipe-scrapers

Basic Usage

from recipe_scrapers import scrape_me

scraper = scrape_me("https://www.allrecipes.com/recipe/158968/spinach-and-feta-turkey-burgers/")
scraper.title()
scraper.instructions()
scraper.to_json()
# for a complete list of methods:
# help(scraper)

This package is focused exclusively on HTML parsing.

For advanced implementations, you’ll need to implement your own solution for fetching recipe HTMLs and managing network requests. The library works best when you provide both the HTML content and its source domain.

You are encouraged to use our scrape_html method:

from recipe_scrapers import scrape_html

Higher-quality image detection is enabled by default when multiple options are available on a page. If you prefer to keep the first image returned by the site, disable the behaviour on a per-call basis or via the global setting:

scraper = scrape_html(html, url, best_image=False)
image_url = scraper.image()

from recipe_scrapers.settings import settings

settings.BEST_IMAGE_SELECTION = False

Supported Sites

We support a wide range of recipe websites out of the box. Check our supported sites list for the full list.

You can also get the full list programmatically with:

from recipe_scrapers import SCRAPERS

SCRAPERS.keys()

Contributing

We welcome contributions! Please read our contribution guide to get started.

Special Thanks

To all the contributors who help make this project better!

https://contrib.rocks/image?repo=hhursev/recipe-scrapers

Share Your Project

Have an idea for using recipe-scrapers? Check out our project ideas wall for inspiration or to share your own project!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recipe_scrapers-15.12.0.tar.gz (164.5 kB view details)

Uploaded Source

Built Distribution

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

recipe_scrapers-15.12.0-py3-none-any.whl (348.0 kB view details)

Uploaded Python 3

File details

Details for the file recipe_scrapers-15.12.0.tar.gz.

File metadata

  • Download URL: recipe_scrapers-15.12.0.tar.gz
  • Upload date:
  • Size: 164.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for recipe_scrapers-15.12.0.tar.gz
Algorithm Hash digest
SHA256 7610139233ca2ffb139038e97839cc17c17af1e7a3cb39e126075882121d6ee0
MD5 6ea119da7fb67e790dd99583222d029b
BLAKE2b-256 81fbb73d2a12103918a9299fd53bda4830285dd5567a74ca20a7c1eaad2a8455

See more details on using hashes here.

Provenance

The following attestation bundles were made for recipe_scrapers-15.12.0.tar.gz:

Publisher: publish.yaml on hhursev/recipe-scrapers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file recipe_scrapers-15.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for recipe_scrapers-15.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51c22eb2a61009f4892a9f5c059c5fa5b854a51591f9358b9bbeeb357839e678
MD5 323d7a5a5374c95dd277dc42b628098c
BLAKE2b-256 67efa93997a728f415a0b857992baab6f4feab8a1415a4a9a86f5a3e9a77e5c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for recipe_scrapers-15.12.0-py3-none-any.whl:

Publisher: publish.yaml on hhursev/recipe-scrapers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

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