diff options
| author | horus | 2018-02-14 18:32:43 +0100 |
|---|---|---|
| committer | horus | 2018-02-14 18:32:43 +0100 |
| commit | 8499fb035cb2b0d2cb28bf3a48483761f95c1937 (patch) | |
| tree | a38bb5b3edac67a4d385e88ccfbe0fc64bed7c42 /crawler/main.go | |
| parent | 62174f7c84a6224a50b43438ce09b461233f7d8e (diff) | |
| download | alkobote-8499fb035cb2b0d2cb28bf3a48483761f95c1937.tar.gz | |
Adds URL shorting with polr. (crawler)
Diffstat (limited to 'crawler/main.go')
| -rw-r--r-- | crawler/main.go | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |
