summaryrefslogtreecommitdiff
path: root/crawler/shop_drankdozijn.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_drankdozijn.go')
-rw-r--r--crawler/shop_drankdozijn.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/crawler/shop_drankdozijn.go b/crawler/shop_drankdozijn.go
index 0a5cca4..adc8633 100644
--- a/crawler/shop_drankdozijn.go
+++ b/crawler/shop_drankdozijn.go
@@ -16,8 +16,8 @@ func (app *App) ScrapeDrankdozijn(shop Shop) []Angebot {
Offers := []Angebot{}
- types := map[int]string{230: "Whisky", 270: "Gin", 220: "Wodka", 210: "Rum", 250: "Likör", 240: "Cognac"}
- //types := map[int]string{240: "Cognac"}
+ types := map[int]string{230: "Whisky", 270: "Gin", 220: "Wodka", 210: "Rum", 250: "Likör", 240: "Cognac", "Champagner": 100}
+ //types := map[int]string{100: "Champagner"}
var current_type string
c := app.customCollector([]string{"drankdozijn.de"})
@@ -98,6 +98,10 @@ func (app *App) ScrapeDrankdozijn(shop Shop) []Angebot {
if current_type == "Cognac" {
W.Spirit_type = e.Request.Ctx.Get("spirit_type")
}
+ if current_type == "Champagner" && e.Request.Ctx.Get("spirit_type") != "Champagner" {
+ DebugOffer(W, "Drankdozijn: Skip Offer")
+ return
+ }
W.Website = e.Request.Ctx.Get("website")
@@ -157,6 +161,8 @@ func (app *App) ScrapeDrankdozijn(shop Shop) []Angebot {
Shop_url = Shop_url_base + "vodka"
case "Likör":
Shop_url = Shop_url_base + "likeuren"
+ case "Champagner":
+ Shop_url = Shop_url_base + "wijn"
default:
Shop_url = Shop_url_base + current_type
}