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_bottleworld.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawler/shop_bottleworld.go') diff --git a/crawler/shop_bottleworld.go b/crawler/shop_bottleworld.go index 720f2c8..0057bff 100644 --- a/crawler/shop_bottleworld.go +++ b/crawler/shop_bottleworld.go @@ -20,6 +20,8 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot { c.OnHTML("li.item", func(e *colly.HTMLElement) { W := Angebot{} + W.Shop = shop.Id + whisky_name := e.ChildText("h2 > a") var err error @@ -63,8 +65,6 @@ func (app *App) ScrapeBottleWord(shop Shop) []Angebot { e.Request.Visit(W.Url) - W.Shop = shop.Id - var ctx string W.Volume, ctx = get_volume(e) if W.Volume == 0 { -- cgit v1.2.3