CSV exporter support added. Not finished for map type.

This commit is contained in:
Musab Gültekin
2019-06-11 20:42:22 +03:00
parent bbdc3bcacd
commit a311a0f998
4 changed files with 65 additions and 2 deletions

View File

@@ -45,12 +45,14 @@ func quotesParse(r *geziyor.Response) {
r.DocHTML.Find("div.quote").Each(func(i int, s *goquery.Selection) {
// Export Data
r.Exports <- map[string]interface{}{
"number": i,
"text": s.Find("span.text").Text(),
"author": s.Find("small.author").Text(),
"tags": s.Find("div.tags > a.tag").Map(func(_ int, s *goquery.Selection) string {
return s.Text()
}),
}
//r.Exports <- []string{s.Find("span.text").Text(), s.Find("small.author").Text()}
})
// Next Page