ScrapeMultiple
Creates a fluent batch-scrape builder bound to a download task. The server request is sent only when the builder retrieves values.
Syntax
wds.ScrapeMultiple(@downloadTask)
Arguments
| Name | Type | Description |
|---|---|---|
| @downloadTask | wds.DownloadTask | Supplies the task used by the later batch request. A null task remains unbound and later retrieval produces no values. |
Returns
wds.ScrapeMultipleParams — use its AddScrapeParams, GetAll, and GetFirst methods to configure and retrieve the batch result.
See Scrape Paged for a complete ScrapeMultiple(...).AddScrapeParams(...).GetFirst(...) workflow.
Data Contracts
DownloadTask
Represents a download task that can be passed to MSSQL CLR functions.
| Name | Type | Description |
|---|---|---|
| Server | ServerConfig | Server connection associated with the task. |
| Id | string | Download task identifier. |
| Url | string | Download task URL. |
Validation requires Server, Id, and Url.
ServerConfig
API server configuration.
| Name | Type | Description |
|---|---|---|
| Uri | Uri | API server URI. |
Parse accepts wds://user:password@host:port?https=false, requires the wds scheme, and produces an HTTP URI unless https=true is supplied. Validation requires a URI.
ScrapeMultipleParams
A special object for fluent configuration of a batch scrape request.
| Name | Type | Description | | — | — | — |
BindDownloadTask(downloadTask) binds the parent task. AddScrapeParams(name, selector, attributeName) adds an extraction rule. GetAll(name) returns StringDataItems, and GetFirst(name) returns the first scraped string. GetFirst(name) returns NULL when no value is available. Validation requires a bound task and validates all configured scrape parameters.
ScrapeParams
Defines one named field extracted from pages by selector, attribute, and optional conversion.
| Name | Type | Description |
|---|---|---|
| Name | string | Output field name; names must be unique within a scrape request or Traversal level. |
| Selector | string | Selector for matching elements: CSS: <selector>, XPATH: <selector>, or * for the whole page. |
| AttributeName | string | Optional attribute; val, null, or empty returns inner text. |
| Convert | string | Optional conversion: md() for Markdown or sr() for main readable content. |
Validation requires Name and Selector.
ScrapeResult
Represents values extracted for one named scrape field.
| Name | Type | Description |
|---|---|---|
| Name | string | Optional field name copied from the matching ScrapeParams entry. |
| Values | array of string | Scraped values. |
Validation requires Name and Values.
StringDataItems
A special object for the ToStringsTable function.
| Name | Type | Description |
|---|---|---|
| DataItems | array of string | Source XML documentation is missing for this public field. |
AddDataItems(items) adds data items. Parse is unsupported.