- update readme

This commit is contained in:
rocketlaunchr-cto 2020-03-11 15:33:36 +11:00
parent 9a5a226b03
commit ad9d95d3fa
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# google-search [![GoDoc](http://godoc.org/github.com/rocketlaunchr/google-search?status.svg)](http://godoc.org/github.com/rocketlaunchr/google-search)[![Go Report Card](https://goreportcard.com/badge/github.com/rocketlaunchr/google-search)](https://goreportcard.com/report/github.com/rocketlaunchr/google-search) # google-search [![GoDoc](http://godoc.org/github.com/rocketlaunchr/google-search?status.svg)](http://godoc.org/github.com/rocketlaunchr/google-search) [![Go Report Card](https://goreportcard.com/badge/github.com/rocketlaunchr/google-search)](https://goreportcard.com/report/github.com/rocketlaunchr/google-search)
Quickly scrape Google Seach Results. Quickly scrape Google Seach Results.
@ -21,6 +21,12 @@ func main() {
} }
``` ```
## Warning
The implementation relies on Google's search page DOM being constant. If it changes, then the implementation will break. Having said that, it hasn't changed for years.
In the event it changes, this package will be updated as soon as possible.
Other useful packages Other useful packages
------------ ------------

View File

@ -40,7 +40,7 @@ var GoogleDomains = map[string]string{
"nz": "https://www.google.co.nz/search?q=", "nz": "https://www.google.co.nz/search?q=",
} }
// SearchOptions modifies how Search function behaves. // SearchOptions modifies how the Search function behaves.
type SearchOptions struct { type SearchOptions struct {
// CountryCode sets the ISO 3166-1 alpha-2 code of the localized Google Search homepage to use. // CountryCode sets the ISO 3166-1 alpha-2 code of the localized Google Search homepage to use.