diff --git a/README.md b/README.md index 03cc7c4..86a84b9 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 ------------ diff --git a/search.go b/search.go index 24f01e4..05ba604 100644 --- a/search.go +++ b/search.go @@ -40,7 +40,7 @@ var GoogleDomains = map[string]string{ "nz": "https://www.google.co.nz/search?q=", } -// SearchOptions modifies how Search function behaves. +// SearchOptions modifies how the Search function behaves. type SearchOptions struct { // CountryCode sets the ISO 3166-1 alpha-2 code of the localized Google Search homepage to use.