Google search spider template (google_search
)
Basic use
scrapy crawl google_search -a search_queries="foo bar"
Parameters
- pydantic model zyte_spider_templates.spiders.serp.GoogleSearchSpiderParams[source]
- field cr: str | None = None
Restricts search results to documents originating in particular countries. See https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list#body.QUERY_PARAMETERS.cr
- field domain: GoogleDomain = GoogleDomain.google_com
Target Google domain.
- field geolocation: Geolocation | None = None
Country of the IP addresses to use.
- field gl: GoogleGl | None = None
Boosts results relevant to this country. See https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list#body.QUERY_PARAMETERS.gl
- field hl: GoogleHl | None = None
User interface language, which can affect search results. See https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list#body.QUERY_PARAMETERS.hl
- field item_type: SerpItemType = SerpItemType.off
If specified, follow organic search result links, and extract the selected data type from the target pages. Spider output items will be of the specified data type, not search engine results page items.
- field lr: str | None = None
Restricts search results to documents written in the specified languages. See https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list#body.QUERY_PARAMETERS.lr