summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskysitenl.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_whiskysitenl.go')
-rw-r--r--crawler/shop_whiskysitenl.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawler/shop_whiskysitenl.go b/crawler/shop_whiskysitenl.go
index d69ec68..e410445 100644
--- a/crawler/shop_whiskysitenl.go
+++ b/crawler/shop_whiskysitenl.go
@@ -8,6 +8,7 @@ import (
)
func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot {
+
Whiskys := []Angebot{}
Shop_url := "https://www.whiskysite.nl/en/specials/?limit=100"
@@ -94,6 +95,8 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot {
// calculate base price, volume is never zero
W.Base_price = int(RoundToEven(float64(W.Discounted_price) / float64(W.Volume)))
+ W.Website = e.Request.Ctx.Get("website")
+
Whiskys = append(Whiskys, W)
})
@@ -135,6 +138,7 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot {
}
e.Request.Ctx.Put("abv", abv_noisy)
+ e.Request.Ctx.Put("website", string(e.Response.Body))
})
c.Visit(Shop_url)