diff options
| -rw-r--r-- | crawler/shop_drankdozijn.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawler/shop_drankdozijn.go b/crawler/shop_drankdozijn.go index 2383ec2..28f79b2 100644 --- a/crawler/shop_drankdozijn.go +++ b/crawler/shop_drankdozijn.go @@ -115,6 +115,17 @@ func (app *App) ScrapeDrankdozijn(shop Shop) []Angebot { c := app.customCollector([]string{"drankdozijn.de", "drankdozijn.nl"}) + c.OnHTML("span.product_title", func(e *colly.HTMLElement) { + + Trace(nil, "D12: On span.product_title: "+e.Text) + + if e.Text != W.Name { + W.Trace("Name changed from: " + W.Name + " to " + e.Text) + W.Name = e.Text + } + + }) + c.OnHTML(".product_top", func(e *colly.HTMLElement) { if strings.Contains(W.Name, "+ gratis") || strings.Contains(W.Name, "& gratis") { |
