Recipe-scrapers

Latest version: v15.2.1

Safety actively analyzes 682471 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 25

15.2.1

This is essentially a re-release of 15.2.0 -- but that previous version was mistakenly uploaded from a locally-created git tag prepared _before_ some changes from this origin repository were pulled (and hence ended up off-branch after the changes were added).

15.2.0

Adds support for:
- donalskehan.com (1237)
- eatthismuch.com (1237)
- glutenfreeonashoestring.com (1220)
- miljuschka.nl (1254)
- theglutenfreeaustrian.com (1220)
- theloopywhisk.com (1220)

Bugfixes:
- Fix ingredient grouping retrieval for arla (1236)
- Remove workaround from kitchenstories (1240)
- Update/fix scraper for gesund+aktiv (1238)
- Update/fix scraper for realsimple (1242)
- Update/fix scraper for sallysblog (1243)
- Update/fix scraper for tofoo (1244)
- Update/fix scraper for wikicookbook (1239)

Misc:
- Drops support for Python 3.8 (1265)
- Modernize some type hints given that Python 3.9 has become baseline (1267)
- Adds an enforced order for nutritional expectations in JSON test data (1203)
- Refactor the `generate.py` scraper-generator script (1232)
- Raise a newly-added `RecipeSchemaNotFound` exception when the schema.org-fill plugin fails to find metadata on the page (1230)
- Require only `ingredients_list`, not also `ingredients`, in the test JSON data (1211)
- Cleanups: remove redundant methods and test expectation data (1197, 1228, 1255)

Thank you, jaspervzwi jknndy! :tada:

15.1.0

Adds support for:
- books.ottolenghi.co.uk (1227)
- celebratingsweets.com (1196)
- ingoodflavor.com (1196)
- kalejunkie.com (1204)
- kitchendreaming.com (1196)
- leitesculinaria.com (1196)
- myvegetarianroots.com (1196)
- peelwithzeal.com (1196)
- sandwichtribunal.com (1196)

Improvements:
- streetkitchen.hu: additional field retrievals (1183)
- whatsgabycooking.com: ingredient group support (1210)

Bugfixes:
- streetkitchen.hu: field retrieval fixups (1183)

Thank you, bartaldavid jknndy tomtjes!

15.0.1

Bugfixes:
- mob.co.uk: rating-rounding and site name retrieval (1198)
- reishunger.de: HTML and scraping refresh (1202)
- weightwatchers.*: dynamic category retrieval, language correction (1213, 1216)
- abstract schema.org: fixup for retrieval of graph lists (1199)

Misc:
- Documentation fixups (1208, b798870a8a040257e477dbcc559036f608d4c364)
- Allow package description retrieval from metadata on Py3.9 (1218)
- A clearer, more transparent identifying user-agent has been added (1221)
- Enable continuous integration on the `v14` branch (1222)

Thank you, jknndy nmummau! :tada:

15.0.0

:poultry_leg: :rice: :shallow_pan_of_food: 15.0.0 :green_apple: :carrot: :tomato:

Welcome to version 15.0.0 of `recipe-scrapers`, a simple scraping tool for recipe webpages.

This version is a major version upgrade, and contains some breaking changes from the 14.x series.

In particular:

- The `scrape_me` function to the library has been removed from the 15.x series - please migrate to use the recommended `scrape_html` function instead.
- This includes removal of the generic `options` arguments that were previously passed to `requests`. Please configure the options for your HTTP client (`requests`, `httpx`, `urllib.request` or other) directly.
- If you need more time to migrate: don't worry, the 14.x series will continue to be maintained and updated until we're comfortable that the upgraded version is in regular use.

To get started and for usage examples, see the [`README` file](https://github.com/hhursev/recipe-scrapers/blob/20bad7e9d5afe1d5286373e407d43c14260a461f/README.rst).

Features
- Support for America's Test Kitchen, Cook's Country, and Cook's Illustrated have been added (1060) - thank you, smilerz!

Scrapers removed
Unfortunately the updated scraper interface is more restrictive, by-design, than 14.x - each scraper accepts an individual HTML page as input, and should not directly make additional HTTP requests. During adaptation to this interface, we dropped support for the following scrapers:

- coop.se
- gousto.co.uk
- kptncook.com
- madewithlau.com
- marleyspoon.com
- monsieur-cuisine.com
- woolworths.com.au

This makes scrapers simpler, and that means they're easier to review and support. But it is a trade-off against the coverage of recipe sites that we can achieve.

Dependencies removed

- `requests` is no longer a hard dependency of the library, but is available as an optional dependency.
- `responses` is no longer required to run unit tests for the library.

Edit: add missing (and important!) scrapers-removed section.
Edit: section-heading nesting consistency.

15.0.0rc3

This is the third release candidate for the v15 major version of `recipe-scrapers`. There's no plan at the moment to discontinue the v14 / mainline branch, particularly due to the interface breaks here.

Breaking changes
* The `scrape_html` function no longer uses `requests` to download recipes by default. To opt-in to backwards-compatible behaviour, ensure that `requests` is installed (for example, by using `pip install recipe-scrapers[online]`) and pass the `online=True` argument to the function.
* The `scrape_me` function is no longer supported; please migrate to use the `scrape_html` function instead, and provide the HTML to scrape as an argument, or use the `online=True` feature of the function.

Deprecations
* The `wild_mode=True` argument is deprecated; please migrate to use the `supported_only=False` argument instead.

Page 1 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.