From 8499fb035cb2b0d2cb28bf3a48483761f95c1937 Mon Sep 17 00:00:00 2001 From: horus Date: Wed, 14 Feb 2018 18:32:43 +0100 Subject: Adds URL shorting with polr. (crawler) --- crawler/main.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawler/main.go') diff --git a/crawler/main.go b/crawler/main.go index 779ebba..15e854c 100644 --- a/crawler/main.go +++ b/crawler/main.go @@ -29,6 +29,7 @@ type Angebot struct { Volume float32 Shop int Url string + Short_url string Original_price int Discounted_price int Base_price int @@ -91,6 +92,12 @@ func main() { } app.ScrapeHTML(shops) + + // short url + err = app.post_process() + if err != nil { + log.Fatal(err) + } } func printName(W []Angebot, name string) { -- cgit v1.2.3