summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskyworld.go
diff options
context:
space:
mode:
authorhorus2018-02-17 19:07:08 +0100
committerhorus2018-02-17 19:07:08 +0100
commit47ee2f721f552d0b65159516f7420d14a7880bbd (patch)
treee6f47ac4974833774f5dac4f584753f5c9a7ed56 /crawler/shop_whiskyworld.go
parenta5febb8c285ca68e34f55c34d32d24aacd41a52d (diff)
downloadalkobote-47ee2f721f552d0b65159516f7420d14a7880bbd.tar.gz
Minor improvement in logging. (crawler)
Diffstat (limited to 'crawler/shop_whiskyworld.go')
-rw-r--r--crawler/shop_whiskyworld.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawler/shop_whiskyworld.go b/crawler/shop_whiskyworld.go
index def22c6..6306f6f 100644
--- a/crawler/shop_whiskyworld.go
+++ b/crawler/shop_whiskyworld.go
@@ -28,6 +28,9 @@ func (app *App) ScrapeWhiskyworld(shop Shop) []Angebot {
W := Angebot{}
+ W.Shop = shop.Id
+ W.Spirit_type = "Whisky"
+
whisky_name_part1 := e.ChildText("h3")
whisky_name_part2 := e.ChildText(".item-description")
@@ -105,9 +108,6 @@ func (app *App) ScrapeWhiskyworld(shop Shop) []Angebot {
W.Image_url = "https:" + e.ChildAttr("img", "src")
- W.Shop = shop.Id
- W.Spirit_type = "Whisky"
-
e.Request.Visit(W.Url)
W.Website = e.Request.Ctx.Get("website")