Skip to content

Instantly share code, notes, and snippets.

@mottet-dev
Created June 10, 2019 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mottet-dev/aa5b24977d4f350d9bcfbe6fa2ec38bc to your computer and use it in GitHub Desktop.
Save mottet-dev/aa5b24977d4f350d9bcfbe6fa2ec38bc to your computer and use it in GitHub Desktop.
Visit - 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)
})
c.Visit("https://www.amazon.com/s?k=nintendo+switch&ref=nb_sb_noss_1")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment