summaryrefslogtreecommitdiff
path: root/crawler/shop_rumundco.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_rumundco.go')
-rw-r--r--crawler/shop_rumundco.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawler/shop_rumundco.go b/crawler/shop_rumundco.go
index c9a61a2..7ce5c29 100644
--- a/crawler/shop_rumundco.go
+++ b/crawler/shop_rumundco.go
@@ -125,7 +125,7 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot {
})
// Rum & Co uses pagespeed
- image_url_noisy := e.ChildAttr("img", "src")
+ image_url_noisy := e.ChildAttr("img", "data-src")
if strings.Contains(image_url_noisy, "pagespeed") {
r_pagespeed, err := regexp.Compile(`jpg(\.pagespeed.+)$`)
@@ -176,7 +176,12 @@ func (app *App) ScrapeRumundCo(shop Shop) []Angebot {
}
W.Website = e.Request.Ctx.Get("website")
- Whiskys = append(Whiskys, W)
+ if W.Original_price == 0 {
+ W.Println("Rum & Co: Original price is zero")
+ return
+ } else {
+ Whiskys = append(Whiskys, W)
+ }
})
c.OnHTML("#table-collapse .product-attributes table", func(e *colly.HTMLElement) {