Install & Compatibility
Where this runs
tested against v15.11.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 1.554s · 48.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.2s · import 1.370s · 49MB
47MB installed
● package 47MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
scrape_me
✓ from recipe_scrapers import scrape_me
✗ from recipe_scrapers.scraper import scrape_me
scrape_me is a top-level function, not from the scraper module.
AbstractScraper
✓ from recipe_scrapers import AbstractScraper
✗ from recipe_scrapers.abstract import AbstractScraper
AbstractScraper is exported from the package root for convenience.
Fetch and parse a recipe from a given URL. scrape_me returns a scraper object with methods like title(), ingredients(), instructions(), etc.
from recipe_scrapers import scrape_me
url = 'https://www.allrecipes.com/recipe/12345/'
scraper = scrape_me(url)
print(scraper.title())
print(scraper.ingredients())
print(scraper.instructions())
Errors
Common errors & fixes
AttributeError: module 'recipe_scrapers' has no attribute 'scrape_me'
Importing the module name with a hyphen (recipe-scrapers) instead of the correct package name (recipe_scrapers).
fixChange import to: from recipe_scrapers import scrape_me
requests.exceptions.HTTPError: 403 Client Error
Some websites block automated requests. The scraper does not handle this gracefully.
fixPass a custom headers dict to scrape_me: scrape_me(url, headers={'User-Agent': 'Mozilla/5.0'}) ValueError: No recipe found at this URL
The URL does not correspond to a recipe page or the scraper cannot parse it.
fixEnsure the URL is from a supported source. Use wild_mode=True for generic parsing.
Upgrade
Version history
15.11.0latest on PyPI · released Dec 10, 2025
Audit
Dependencies
beautifulsoup4requiredHTML parsing
requestsrequiredHTTP requests
lxmlrequiredXML parser