WebScraper.Request Method (String, Action(Response), HttpIdentity, MetaData)

IronWebScraper

WebScraperRequest Method (String, ActionResponse, HttpIdentity, MetaData)

A key method called from with the Init and Parse Methods. Request adds a new request to the scrape-job queue, and decides which method (e.g. Parse) will be used to parse the Response object.

Namespace:  IronWebScraper
Assembly:  IronWebScraper (in IronWebScraper.dll) Version: 4.0.4.25470 (4.0.4.3)
Syntax
public virtual void Request(
	string url,
	Action<Response> parse,
	HttpIdentity identity = null,
	MetaData metaData = null
)
Public Overridable Sub Request ( 
	url As String,
	parse As Action(Of Response),
	Optional identity As HttpIdentity = Nothing,
	Optional metaData As MetaData = Nothing
)

Parameters

url
Type: SystemString
The absolute url to be fetched. Developers may use Response.ToAbsoluteUrl to resolve all relative links to Absolute Url strings.
parse
Type: SystemActionResponse
The method to be used to parse the Response (often this is WebScraper.Parse)
identity (Optional)
Type: IronWebScraperHttpIdentity
An HttpIdentity to send the Request. If null, the ChooseIdentityForRequest method will be used to find a suitable identity.
metaData (Optional)
Type: IronWebScraperMetaData
Additional information of any Type can be sent with the request and then re-read when the response is parsed .
See Also