Last active
June 10, 2019 19:46
-
-
Save mottet-dev/cd43ef05a918e2f1ad9af7cacc7cb5a8 to your computer and use it in GitHub Desktop.
OnRequest - Go Colly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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