Documentation ¶
Overview ¶
Package recipe extracts recipes from Hello Fresh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collections ¶
Collections scrapes a list of recipe collections from the Hello Fresh website.
func IsValidPage ¶
IsValidPage tests whether the provided page is a valid Hello Fresh recipe page.
Types ¶
type Ingredient ¶
type IngredientFamily ¶
type IngredientYield ¶
type Recipe ¶
type Recipe struct { ID string Country string Name string SeoName string Category Category Slug string Headline string Description string DescriptionHTML string DescriptionMarkdown string SeoDescription string Comment string Difficulty int PrepTime string TotalTime string ServingSize int CreatedAt time.Time UpdatedAt time.Time Link string ImageLink string ImagePath string CardLink string VideoLink string Nutrition []Nutrition Ingredients []Ingredient Allergens []Allergen Utensils []Utensil Tags []Tag Cuisines []Cuisine Yields []Yield }
type Recipes ¶
type Recipes []Recipe
func ScrapeRecipes ¶
ScrapeRecipes scrapes recipes from the JSON payload on the Hello Fresh website.
func (Recipes) YieldIDsToNames ¶
YieldIDsToNames converts recipe IngredientYield IDs to their respective names.
type Yield ¶
type Yield struct { Yields int Ingredients []IngredientYield }
Click to show internal directories.
Click to hide internal directories.