Skip to content

Instantly share code, notes, and snippets.

@mottet-dev

mottet-dev/main.go

Last active Jun 10, 2019
Embed
What would you like to do?
OnRequest - Go Colly
package main
import (
"fmt"
"github.com/gocolly/colly"
)
func main() {
c := colly.NewCollector()
c.OnRequest(func(r *colly.Request) {
fmt.Println("Visiting", r.URL)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.