summaryrefslogtreecommitdiff
path: root/crawler/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/main.go')
-rw-r--r--crawler/main.go7
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) {