Scrape Tool
The Scrape tool is used to evaluate web pages by extracting data fields using CSS or XPath selectors.
Arguments
Name | Type | Description |
---|---|---|
task | DownloadTask | Required. A task from the previous Start or Crawl tool response |
selector | String | Required. A valid CSS or XPATH selector. |
attributeName | String | Optional. Attribute name to get data from. Use val to get inner text. Default value: val |
DownloadTask
Name | Type | Description |
---|---|---|
Id | String | Required. Task Id |
Url | String | Required. Page URL |
Return Type
Array of String