Skip to main content

Python package, scraping recipes from all over the internet

Project description

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

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!

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

recipe_scrapers-15.9.0.tar.gz (129.0 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.9.0-py3-none-any.whl (275.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: recipe_scrapers-15.9.0.tar.gz
  • Upload date:
  • Size: 129.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for recipe_scrapers-15.9.0.tar.gz
Algorithm Hash digest
SHA256 0235e9d1dd290be5ad5e58ba5be3ff51941c45efb7ec58f2872216fe501cd7d1
MD5 6e4823f24fb19202171fcb37b3223894
BLAKE2b-256 e1d8ebe4bd4e9a0cee6986d4fd1f6a2f0c96753dbd9302021485d47d6596c6dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for recipe_scrapers-15.9.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.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for recipe_scrapers-15.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f794090b46c18b9b863c39965adee0823253d366278d1fa2623235446caa701
MD5 e7d141b0896de85ecd2e2e8b9ff76cfa
BLAKE2b-256 0a32cbc15eb91fb30cb1a0eb2992f83ca3f1bfdb555343fe64a1a40cd61708df

See more details on using hashes here.

Provenance

The following attestation bundles were made for recipe_scrapers-15.9.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.

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