summaryrefslogtreecommitdiff
path: root/crawler/shop_rumundco.go
diff options
context:
space:
mode:
authorhorus2018-02-12 22:54:55 +0100
committerhorus2018-02-12 22:54:55 +0100
commitca5ac0bcb9206e81faab60cc8a8d6da697bdfdbe (patch)
tree57ef53c6cb19cc9b5d82ec21de0437b78cd9264e /crawler/shop_rumundco.go
parentf4a905f93824b91a56b3fb7117438935ea16286f (diff)
downloadalkobote-ca5ac0bcb9206e81faab60cc8a8d6da697bdfdbe.tar.gz
Crawler saves whole webpage.
Diffstat (limited to 'crawler/shop_rumundco.go')
-rw-r--r--crawler/shop_rumundco.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawler/shop_rumundco.go b/crawler/shop_rumundco.go
index ef98e90..cd67c0f 100644
--- a/crawler/shop_rumundco.go
+++ b/crawler/shop_rumundco.go
@@ -80,6 +80,7 @@ func ScrapeRumundCo(shop Shop) []Angebot {
W.Shop = shop.Id
W.Spirit_type = "Whisky"
+ W.Website = e.Request.Ctx.Get("website")
Whiskys = append(Whiskys, W)
})
@@ -98,6 +99,7 @@ func ScrapeRumundCo(shop Shop) []Angebot {
e.Request.Ctx.Put("abv", e.ChildText("a"))
}
})
+ e.Request.Ctx.Put("website", string(e.Response.Body))
})
c.Visit(Shop_url)