Forming URLs
By following these guidelines, you can build URLs for Baidu, Yandex, or Wayfair for your web scraping tasks.
Baidu
Job parameter assignment to URL:
When forming URLs, please follow these instructions:
Encoding search terms: Search terms must be URL-encoded. For instance, spaces should be replaced with
%20
, which represents a space character in a URL.Calculating start page: The
start_page
parameter now corresponds to the number of search results to skip. Use the equationlimit*start_page-limit
to calculate the value.Subdomain assignment: The subdomain value depends on the user agent type provided in the job. If the user agent type contains mobile, the subdomain value should be
m
. Otherwise, it should bewww
.Query parameter: Depending on the subdomain value (
m
orwww
), the query parameter for the query term should be adjusted accordingly (word
form
andwd
forwww
).
Sample Built URLs
For mobile:
For desktop:
Equivalent Job Examples
Decommissioned baidu_search
source:
Updated universal
source:
Yandex
Job parameter assignment to URL:
When forming URLs, please follow these instructions:
Encoding search terms: Search terms must be URL encoded. For instance, spaces should be replaced with
%20
, which represents a space character in a URL.Start page adjustment: The value of the
start_page
has to be reduced by 1. For example, if the desired starting page is 3, then the value in the URL, which represents the page number, has to be2
.Localization: If the domain is either
ru
ortr
, an additional query parameterlr
is added with thegeo_location
value. For other domains, thegeo_location
value is under the query parameterrstr
, where a-
symbol is added before the value.Unsupported: pages parameter is no longer supported. Jobs have to be submitted separately by changing the current page value in the URL.
Built URL examples
Equivalent job example
Decommissioned yandex_search
source:
Updated universal
source:
Wayfair
Job parameter assignment to URL:
When forming URLs, please follow these instructions:
Encoding search terms: search terms must be URL encoded. For instance, spaces should be replaced with
%20
, which represents a space character in a URL.Parameters: If
limit
is equal to48
andstart_page
is equal to1
, then following additional parameters have to be appended to URL:command=dosearch
new_keyword_search=true
Built URL examples
Equivalent job example
Decommissioned wayfair_search
source:
Updated universal
source:
Last updated