PuppeteerCrawlingContext <UserData>
Hierarchy
- BrowserCrawlingContext<Page, HTTPResponse, PuppeteerController, UserData>
- PuppeteerContextUtils
- PuppeteerCrawlingContext
Index
Properties
Methods
Properties
browserController
crawler
enqueueLinks
Type declaration
Parameters
optionaloptions: BrowserCrawlerEnqueueLinksOptions
Returns Promise<BatchAddRequestsResult>
id
log
page
optionalproxyInfo
request
The original Request object.
optionalresponse
sendRequest
Type declaration
Parameters
optionaloverrideOptions: Partial<OptionsInit>
Returns Promise<Response<string>>
optionalsession
Methods
addInterceptRequestHandler
Parameters
handler: InterceptHandler
Returns Promise<void>
blockRequests
Parameters
optionaloptions: BlockRequestsOptions
Returns Promise<void>
blockResources
Parameters
optionalresourceTypes: string[]
Returns Promise<void>
cacheResponses
Parameters
cache: Dictionary<Partial<ResponseForRequest>>
responseUrlRules: (string | RegExp)[]
Returns Promise<void>
compileScript
Parameters
scriptString: string
optionalctx: Dictionary<any>
Returns CompiledScriptFunction
enqueueLinksByClickingElements
Parameters
options: Omit<EnqueueLinksByClickingElementsOptions, requestQueue | page>
Returns Promise<BatchAddRequestsResult>
infiniteScroll
Parameters
optionaloptions: InfiniteScrollOptions
Returns Promise<void>
injectFile
Parameters
filePath: string
optionaloptions: InjectFileOptions
Returns Promise<unknown>
injectJQuery
Returns Promise<unknown>
parseWithCheerio
Returns Promise<CheerioAPI>
removeInterceptRequestHandler
Parameters
handler: InterceptHandler
Returns Promise<void>
saveSnapshot
Parameters
optionaloptions: SaveSnapshotOptions
Returns Promise<void>
An object with information about currently used proxy by the crawler and configured by the ProxyConfiguration class.