From 14a89c34096d2ddb2a7750feda143207110e838b Mon Sep 17 00:00:00 2001 From: horus_arch Date: Wed, 7 Feb 2018 19:09:22 +0100 Subject: Adds sanitizer. --- crawler/shop_whic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawler/shop_whic.go') diff --git a/crawler/shop_whic.go b/crawler/shop_whic.go index 896b1fb..e489161 100644 --- a/crawler/shop_whic.go +++ b/crawler/shop_whic.go @@ -28,13 +28,13 @@ func ScrapeWhic(shop Shop) []Angebot { e.ForEach(".price-box", func(i int, e *colly.HTMLElement) { e.ForEach(".old-price", func(i int, e *colly.HTMLElement) { - W.Original_price, err = sanitize_price(e.ChildText(".price")) + W.Original_price, err = convert_price(e.ChildText(".price")) if err != nil { log.Fatal(err) } }) e.ForEach(".special-price", func(i int, e *colly.HTMLElement) { - W.Discounted_price, err = sanitize_price(e.ChildText(".price")) + W.Discounted_price, err = convert_price(e.ChildText(".price")) if err != nil { log.Fatal(err) } -- cgit v1.2.3