From 92e7cfefece926d346a88decea11fe2d20b13b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Musab=20G=C3=BCltekin?= Date: Sat, 22 Jun 2019 13:13:33 +0300 Subject: [PATCH] Fixed README Doc. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9535c5..021d702 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,13 @@ func main() { } func quotesParse(g *geziyor.Geziyor, r *geziyor.Response) { - r.DocHTML.Find("div.quote").Each(func(i int, s *goquery.Selection) { + r.HTMLDoc.Find("div.quote").Each(func(i int, s *goquery.Selection) { g.Exports <- map[string]interface{}{ "text": s.Find("span.text").Text(), "author": s.Find("small.author").Text(), } }) - if href, ok := r.DocHTML.Find("li.next > a").Attr("href"); ok { + if href, ok := r.HTMLDoc.Find("li.next > a").Attr("href"); ok { g.Get(r.JoinURL(href), quotesParse) } }