Documentation ¶
Overview ¶
Package scraper implements the logic to extract a recipe from a website.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("domain is not implemented")
ErrNotImplemented is the error used when the website is not supported.
Functions ¶
This section is empty.
Types ¶
type IScraper ¶ added in v1.1.0
type IScraper interface {
Scrape(url string, files services.FilesService) (models.RecipeSchema, error)
}
IScraper is the scraper's interface.
type Scraper ¶ added in v1.1.0
Scraper represents the IScraper's implementation.
func NewScraper ¶ added in v1.1.0
func NewScraper(client services.HTTPClient) *Scraper
NewScraper creates a new Scraper.
func (*Scraper) Scrape ¶ added in v1.1.0
func (s *Scraper) Scrape(rawURL string, files services.FilesService) (models.RecipeSchema, error)
Scrape extracts the recipe from the given URL. An error will be returned when the URL cannot be parsed.
Source Files ¶
- 15gram.go
- afghankitchenrecipes.go
- ah.go
- aldi.go
- alittlebityummy.go
- all-clad.go
- angielaeats.go
- aniagotuje.go
- antilliaans-eten.go
- archanaskitchen.go
- argiro.go
- barefootcontessa.go
- bbcgoodfood.go
- bergamot.go
- bettybossi.go
- bettycrocker.go
- bingingwithbabish.go
- blueapron.go
- bodybuilding.go
- bongeats.go
- bottomlessgreens.go
- brianlagerstrom.go
- briceletbaklava.go
- britishbakels.go
- cdkitchen.go
- cestmafournee.go
- chefnini.go
- chetnamakan.go
- chinesecookingdemystified.go
- chuckycruz.go
- closetcooking.go
- cooktalk.go
- coop.go
- costco.go
- culy.go
- dherbs.go
- dish.go
- dk.go
- doc.go
- donnahay.go
- drinkoteket.go
- eatwell101.go
- espressen.go
- etenvaneefke.go
- farmhousedelivery.go
- felix.go
- fitmencook.go
- foodbag.go
- foodnetwork.go
- foodrepublic.go
- forksoverknives.go
- francescakookt.go
- gazoakleychef.go
- gesund-aktiv.go
- giallozafferano.go
- globo.go
- glutenfreetables.go
- goodeatings.go
- gousto.go
- grandfrais.go
- greatbritishchefs.go
- grimgrains.go
- grouprecipes.go
- halfbakedharvest.go
- heatherchristo.go
- helpers.go
- homebrewanswers.go
- homechef.go
- instantpot.go
- jaimyskitchen.go
- jamieoliver.go
- juliegoodwin.go
- justbento.go
- keepinitkind.go
- kennymcgovern.go
- kingarthurbaking.go
- kitchenaid.go
- kochbucher.go
- kookjij.go
- kptncook.go
- kuchniadomova.go
- kuchynalidla.go
- kwestiasmaku.go
- lahbco.go
- latelierderoxane.go
- lekkerensimpel.go
- lidl.go
- lidlkochen.go
- lithuanianintheusa.go
- livingthegreenlife.go
- loveandlemons.go
- maangchi.go
- madewithlau.go
- meljoulwan.go
- mexicanmademeatless.go
- mindmegette.go
- monsieur-cuisine.go
- moulinex.go
- mundodereceitasbimby.go
- myplate.go
- nigella.go
- ninjatestkitchen.go
- okokorecepten.go
- owen-han.go
- panelinha.go
- paninihappy.go
- pickuplimes.go
- plentyvegan.go
- ploetzblog.go
- popsugar.go
- potatorolls.go
- projectgezond.go
- przepisy.go
- purelypope.go
- purewow.go
- puurgezond.go
- quitoque.go
- radiofrance.go
- recettes.go
- recipecommunity.go
- reddit.go
- resihunger.go
- rezeptwelt.go
- robinasbell.go
- rosannapansino.go
- saboresajinomoto.go
- sallysblog.go
- scraper.go
- smittenkitchen.go
- southerncastiron.go
- spiceboxtravels.go
- streetkitchen.go
- sunset.go
- tastykitchen.go
- tesco.go
- thatvegandad.go
- thecookingguy.go
- thefoodflamingo.go
- theguccha.go
- thehappyfoodie.go
- theheartysoul.go
- uitpaulineskeuken.go
- usapears.go
- valdemarsro.go
- vegan-pratique.go
- waitrose.go
- websites.go
- wholefoodsmarket.go
- wikibooks.go
- woop.go
- yemek.go
- yumelise.go
- zeit.go
Click to show internal directories.
Click to hide internal directories.