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_whiskysitenl.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crawler/shop_whiskysitenl.go') diff --git a/crawler/shop_whiskysitenl.go b/crawler/shop_whiskysitenl.go index f1b667c..4dad313 100644 --- a/crawler/shop_whiskysitenl.go +++ b/crawler/shop_whiskysitenl.go @@ -13,10 +13,7 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot { Shop_url := "https://www.whiskysite.nl/en/specials/?limit=100" - c := colly.NewCollector( - colly.AllowedDomains("whiskysite.nl"), - colly.AllowedDomains("www.whiskysite.nl"), - ) + c := customCollector([]string{"whiskysite.nl", "www.whiskysite.nl"}) c.OnHTML(".product-block", func(e *colly.HTMLElement) { -- cgit v1.2.3