recipe

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScrapeHTML added in v0.4.0

func ScrapeHTML(urlStr string, body io.Reader) (recipe.Scraper, error)

ScrapeHTML returns a Scraper that scrapes recipe data from the provided HTML. the urlStr is used to determine if a specific scraper should be used, otherwise a generic scraper is used.

func ScrapeURL added in v0.4.0

func ScrapeURL(urlStr string) (recipe.Scraper, error)

ScrapeURL retrieves the source at the provided url and returns a Scraper that scrapes recipe data from the retrieved HTML.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL