6 "github.com/rocketlaunchr/google-search"
10 ctx := context.Background()
11 opts := googlesearch.SearchOptions{
17 common:=" -inurl:(jsp|pl|php|html|aspx|htm|cf|shtml) -inurl:(index_of|listen77|mp3raid|mp3toss|mp3drug|index_of|wallywashis) intitle:\"index.of./\" "
18 returnLinks, err := googlesearch.Search(ctx, q, opts)
20 fmt.Println("Something went wrong: ", err)
23 if len(returnLinks) == 0 {
24 fmt.Println("no results returned: ", returnLinks)
27 for _, result := range returnLinks {
28 fmt.Println("*", result.URL)
31 //fmt.Println(googlesearch.Search(ctx, "cars for sale in Toronto, Canada"))