summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskysitenl.go
diff options
context:
space:
mode:
authorMax2018-06-15 19:38:04 +0200
committerMax2018-06-15 19:38:04 +0200
commit0026ba55f03c5378d5773459fcdd7c6931ff42a5 (patch)
treec0a6c9b4fd542e4177ce99159e101c5187a56f02 /crawler/shop_whiskysitenl.go
parentb3b35a1706cd99e0978147a4d1b841381cf48348 (diff)
downloadalkobote-0026ba55f03c5378d5773459fcdd7c6931ff42a5.tar.gz
Introduces central crawler config. (crawler)
Diffstat (limited to 'crawler/shop_whiskysitenl.go')
-rw-r--r--crawler/shop_whiskysitenl.go5
1 files changed, 1 insertions, 4 deletions
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) {