summaryrefslogtreecommitdiff
path: root/crawler/shop_spirituosenwolf.de.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_spirituosenwolf.de.go')
-rw-r--r--crawler/shop_spirituosenwolf.de.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawler/shop_spirituosenwolf.de.go b/crawler/shop_spirituosenwolf.de.go
index f4f8e70..29e3898 100644
--- a/crawler/shop_spirituosenwolf.de.go
+++ b/crawler/shop_spirituosenwolf.de.go
@@ -93,6 +93,10 @@ func (app *App) ScrapeSpirituosenWolf(shop Shop) []Angebot {
if err != nil {
offer.Debug("Wolf: Extracting Abv failed")
}
+ if offer.Abv == 0 {
+ offer.Info("Wolf: Abv is Zero.")
+ return
+ }
})
doc.Find(".sw_frontend_listing_box_article_priceinfo_qty").Each(func(i int, s *goquery.Selection) {
@@ -109,6 +113,10 @@ func (app *App) ScrapeSpirituosenWolf(shop Shop) []Angebot {
if err != nil {
offer.Debug("Wolf: Converting original_price failed")
}
+ if offer.Original_price == 0 {
+ offer.Info("Wolf: Original_price is Zero.")
+ return
+ }
})
doc.Find(".sw_frontend_listing_box_article_price_default").Each(func(i int, s *goquery.Selection) {