I try scrape the description from website
img, but I not understand how to get there
My trying
pg := Program{}
slPG := []Program{}
c.OnHTML(".short", func(e *colly.HTMLElement) {
pg.Name = e.ChildText("h2.short-cat")
pg.Link = e.ChildAttr("a", "href")
pg.Rating = e.ChildText("a.orating_res")
pg.Discription = e.ChildText("div.short-text full-text video-box clearfix")
slPG = append(slPG, pg)
})
for i := 1; i < 6; i++ {
c.Visit("https://rsload.net/page/" + strconv.Itoa(i) + "/")
}
file, err := json.MarshalIndent(slPG, "", " ")
if err != nil {
log.Println("Unable to create 'json' file")
return
}
_ = ioutil.WriteFile("files/Export.json", file, 0644)