ScrapeAll

Extracts every value matching the selector from the supplied task’s downloaded page, automatically following pending server-side results.

Syntax

wds.ScrapeAll(@downloadTask, @selector, @attributeName)

Arguments

Name Type Description
@downloadTask wds.DownloadTask Supplies the task ID and server connection. A null task produces no values; a task with an error produces that error as a value.
@selector string Selects matching elements. Use CSS: <selector>, XPATH: <selector>, or * for the whole page.
@attributeName string or null Optional matched-element attribute. Use val, null, or empty for inner text.

Returns

TABLE (Data NVARCHAR(MAX)) — one Data row for every matched page element.

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.

Please rotate your device to landscape mode

This documentation is specifically designed with a wider layout to provide a better reading experience for code examples, tables, and diagrams.
Rotating your device horizontally ensures you can see everything clearly without excessive scrolling or resizing.

Return to Web Data Source Home