recipe_extractor 2.7.0 copy "recipe_extractor: ^2.7.0" to clipboard
recipe_extractor: ^2.7.0 copied to clipboard

Retrieve recipe information from the url of a cooking website

Retrieve recipe information from the url of a cooking website.

Getting started #

https://pub.dev/packages/recipe_extractor/install

Usage #

If an element cannot be extracted, its value will be null RecipeData :

Item Type Value Description
name String? Recipe name
image String? Presentation image link
servings String? Number of servings (Example: For 3 people, For 10 muffins etc...)
ingredients List < String > ? Ingredient list
instuctions List < String > ? List of preparation instructions
source String? Recipe source url
const String recipeUrl = "https://www.allrecipes.com/recipe/218792/ggs-chocolate-sheet-cake";

RecipeData recipeData = await extractRecipe(recipeUrl);

print(recipeData.name);
print(recipeData.image);
print(recipeData.servings);
print(recipeData.ingredients?.join("\n"));
print(recipeData.instructions?.join("\n"));
print(recipeData.source);

Additional information #

Supported recipe sites :
marmiton.org
allrecipes.com
swissmilk.ch
bbcgoodfood.com
simplyrecipes.com
recipetineats.com
topsecretrecipes.com
giallozafferano.it
cucchiaio.it

More coming soon...

1
likes
140
pub points
39%
popularity

Publisher

unverified uploader

Retrieve recipe information from the url of a cooking website

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

html, http, web

More

Packages that depend on recipe_extractor