From 47ee2f721f552d0b65159516f7420d14a7880bbd Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 17 Feb 2018 19:07:08 +0100 Subject: Minor improvement in logging. (crawler) --- crawler/shop_whiskyworld.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawler/shop_whiskyworld.go') 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") -- cgit v1.2.3