Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScrapeGoogle ¶
func ScrapeGoogle(query, apiKey, searchEngineID string) ([]models.SearchResult, error)
Types ¶
type GoogleSearchItem ¶
type GoogleSearchItem struct { Title string `json:"title"` Link string `json:"link"` Snippet string `json:"snippet"` }
A single search result from Google Custom Search API
type GoogleSearchResponse ¶
type GoogleSearchResponse struct {
Items []GoogleSearchItem `json:"items"`
}
The structure of Google Custom Search API response
Click to show internal directories.
Click to hide internal directories.