From f870700824c9d23ccf6e8bd232ea02b44907f38c Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 10 Feb 2018 13:04:59 +0100 Subject: Crawler extracts volume, price per litre and abv. (Whisky.de) --- crawler/utility.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawler/utility.go') diff --git a/crawler/utility.go b/crawler/utility.go index 17ed47b..19c4050 100644 --- a/crawler/utility.go +++ b/crawler/utility.go @@ -67,6 +67,9 @@ func extract_abv(abv_noisy string) (float32, error) { if strings.Contains(abv_noisy, "%") { abv_noisy = strings.Replace(abv_noisy, "%", "", 1) } + if strings.Contains(abv_noisy, "vol") { + abv_noisy = strings.Replace(abv_noisy, "vol", "", 1) + } abv_noisy = strings.Replace(abv_noisy, ",", ".", 1) abv_noisy = strings.TrimSpace(abv_noisy) -- cgit v1.2.3