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_rumundco.go | |
| parent | a5febb8c285ca68e34f55c34d32d24aacd41a52d (diff) | |
| download | alkobote-47ee2f721f552d0b65159516f7420d14a7880bbd.tar.gz | |
Minor improvement in logging. (crawler)
Diffstat (limited to 'crawler/shop_rumundco.go')
| -rw-r--r-- | crawler/shop_rumundco.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawler/shop_rumundco.go b/crawler/shop_rumundco.go index 58de518..30c8765 100644 --- a/crawler/shop_rumundco.go +++ b/crawler/shop_rumundco.go @@ -27,6 +27,9 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { W := Angebot{} + W.Shop = shop.Id + W.Spirit_type = "Whisky" + whisky_name := strings.TrimPrefix(e.ChildAttr("img", "alt"), "Restposten: ") whisky_url := "https://www.rumundco.de/" + e.ChildAttr("a", "href") @@ -136,9 +139,6 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot { WarnOffer(W, "Rum & Co: Abv is zero") return } - - W.Shop = shop.Id - W.Spirit_type = "Whisky" W.Website = e.Request.Ctx.Get("website") Whiskys = append(Whiskys, W) |
