themes/colly/layouts/index.html
{{ define "main" }}
With Colly you can easily extract structured data from websites, which can be used for a wide range of applications, like data mining, data processing or archiving.
{{ highlight func main() { c := colly.NewCollector() // Find and visit all links c.OnHTML("a", func(e *colly.HTMLElement) { e.Request.Visit(e.Attr("href")) }) c.OnRequest(func(r *colly.Request) { fmt.Println("Visiting", r.URL) }) c.Visit("http://go-colly.org/") } "go" "linenos=table" }}
Colly comes with all the tools you need for scraping.
Free for commercial use.
Development of Colly is community driven and public.
{{ end }}