diff options
| author | horus | 2018-02-17 19:07:08 +0100 |
|---|---|---|
| committer | horus | 2018-02-17 19:07:08 +0100 |
| commit | 47ee2f721f552d0b65159516f7420d14a7880bbd (patch) | |
| tree | e6f47ac4974833774f5dac4f584753f5c9a7ed56 /crawler/shop_bottleworld.go | |
| parent | a5febb8c285ca68e34f55c34d32d24aacd41a52d (diff) | |
| download | alkobote-47ee2f721f552d0b65159516f7420d14a7880bbd.tar.gz | |
Minor improvement in logging. (crawler)
Diffstat (limited to 'crawler/shop_bottleworld.go')
| -rw-r--r-- | crawler/shop_bottleworld.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
