package main import ( "fmt" "github.com/gocolly/colly" ) func main() { c := colly.NewCollector() // ãªã¯ã¨ã¹ã許å¯ãããã¡ã¤ã³ã®è¨å® c.AllowedDomains = []string{"jp.leagueoflegends.com", "support.riotgames.com"} // HTMLããã£ãæã«å®è¡ããã³ã¼ã«ãã㯠c.OnHTML("a[href]", func(element *colly.HTMLElement) { link := element.Attr("href") fmt.Printf("è¦ã¤ãããªã³ã¯: %q -> %s\n", element.Text, link) // è¦ã¤ãããªã³ã¯ã«ãªã¯ã¨ã¹ã c.Visit(element.Request.A
{{#tags}}- {{label}}
{{/tags}}