From 0026ba55f03c5378d5773459fcdd7c6931ff42a5 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 15 Jun 2018 19:38:04 +0200 Subject: Introduces central crawler config. (crawler) --- crawler/shop_mcwhisky.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crawler/shop_mcwhisky.go') diff --git a/crawler/shop_mcwhisky.go b/crawler/shop_mcwhisky.go index cea020a..ef780a9 100644 --- a/crawler/shop_mcwhisky.go +++ b/crawler/shop_mcwhisky.go @@ -11,10 +11,7 @@ func (app *App) ScrapeMCWhisky(shop Shop) []Angebot { Whiskys := []Angebot{} - c := colly.NewCollector( - colly.AllowedDomains("mcwhisky.com"), - colly.AllowedDomains("www.mcwhisky.com"), - ) + c := customCollector([]string{"mcwhisky.com", "www.mcwhisky.com"}) c.OnHTML("li.item", func(e *colly.HTMLElement) { -- cgit v1.2.3