diff options
| author | horus | 2018-02-12 22:54:55 +0100 |
|---|---|---|
| committer | horus | 2018-02-12 22:54:55 +0100 |
| commit | ca5ac0bcb9206e81faab60cc8a8d6da697bdfdbe (patch) | |
| tree | 57ef53c6cb19cc9b5d82ec21de0437b78cd9264e /crawler/shop_whic.go | |
| parent | f4a905f93824b91a56b3fb7117438935ea16286f (diff) | |
| download | alkobote-ca5ac0bcb9206e81faab60cc8a8d6da697bdfdbe.tar.gz | |
Crawler saves whole webpage.
Diffstat (limited to 'crawler/shop_whic.go')
| -rw-r--r-- | crawler/shop_whic.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawler/shop_whic.go b/crawler/shop_whic.go index 6025050..b4f9562 100644 --- a/crawler/shop_whic.go +++ b/crawler/shop_whic.go @@ -71,6 +71,7 @@ func ScrapeWhic(shop Shop) []Angebot { W.Shop = shop.Id W.Spirit_type = "Whisky" + W.Website = e.Request.Ctx.Get("website") Whiskys = append(Whiskys, W) }) @@ -99,6 +100,7 @@ func ScrapeWhic(shop Shop) []Angebot { } e.Request.Ctx.Put("abv", abv[1]+"%") + e.Request.Ctx.Put("website", string(e.Response.Body)) }) c.Visit(Shop_url) |
