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

Retrieve recipe information from the url of a cooking website

example/recipe_extractor_example.dart

import 'package:recipe_extractor/recipe_extractor.dart';

void main() async {
  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);
}
1
likes
130
pub points
66%
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