Search
Preparing search index...
The search index is not available
source-scraper-puppeteer-runner
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
PuppeteerRunner
Class PuppeteerRunner<T>
Type parameters
T
Hierarchy
Runner
<
T
,
IPuppeteerRunnerOptions
,
IPuppeteerRunnerArgs
>
PuppeteerRunner
Implements
IConfigurable
<
IPuppeteerRunnerOptions
>
IRunner
<
T
,
IPuppeteerRunnerOptions
,
IPuppeteerRunnerArgs
>
IPuppeteerRunner
<
T
>
Index
Methods
change
Options
exec
get
Options
run
merge
Options
Object literals
default
Options
Methods
change
Options
change
Options
(
options
:
Partial
<
IPuppeteerRunnerOptions
>
)
:
IPuppeteerRunnerOptions
Parameters
options:
Partial
<
IPuppeteerRunnerOptions
>
Returns
IPuppeteerRunnerOptions
Protected
exec
exec
(
url
:
string
, scraper
:
function
, options
:
IPuppeteerRunnerOptions
)
:
Promise
<
T
>
Parameters
url:
string
scraper:
function
(
args
:
IPuppeteerRunnerArgs
)
:
Promise
<
T
>
Parameters
args:
IPuppeteerRunnerArgs
Returns
Promise
<
T
>
options:
IPuppeteerRunnerOptions
Returns
Promise
<
T
>
get
Options
get
Options
(
options
?:
Partial
<
IPuppeteerRunnerOptions
>
)
:
IPuppeteerRunnerOptions
Parameters
Optional
options:
Partial
<
IPuppeteerRunnerOptions
>
Returns
IPuppeteerRunnerOptions
run
run
(
url
:
string
, scraper
:
function
, options
?:
RO
)
:
Promise
<
T
>
Parameters
url:
string
scraper:
function
(
args
:
IPuppeteerRunnerArgs
)
:
Promise
<
T
>
Parameters
args:
IPuppeteerRunnerArgs
Returns
Promise
<
T
>
Optional
options:
RO
Returns
Promise
<
T
>
Static
merge
Options
merge
Options<O>
(
o1
:
O
, o2
:
Partial
<
O
>
|
O
|
undefined
)
:
O
merge
Options<O>
(
o1
:
O
|
Partial
<
O
>
|
undefined
, o2
:
O
)
:
O
merge
Options<O>
(
o1
:
Partial
<
O
>
|
undefined
, o2
:
Partial
<
O
>
)
:
Partial
<
O
>
merge
Options<O>
(
o1
:
Partial
<
O
>
, o2
:
Partial
<
O
>
|
undefined
)
:
Partial
<
O
>
merge
Options<O>
(
o1
:
Partial
<
O
>
|
undefined
, o2
:
Partial
<
O
>
|
undefined
)
:
Partial
<
O
>
|
undefined
Type parameters
O
:
IOptions
Parameters
o1:
O
o2:
Partial
<
O
>
|
O
|
undefined
Returns
O
Type parameters
O
:
IOptions
Parameters
o1:
O
|
Partial
<
O
>
|
undefined
o2:
O
Returns
O
Type parameters
O
:
IOptions
Parameters
o1:
Partial
<
O
>
|
undefined
o2:
Partial
<
O
>
Returns
Partial
<
O
>
Type parameters
O
:
IOptions
Parameters
o1:
Partial
<
O
>
o2:
Partial
<
O
>
|
undefined
Returns
Partial
<
O
>
Type parameters
O
:
IOptions
Parameters
o1:
Partial
<
O
>
|
undefined
o2:
Partial
<
O
>
|
undefined
Returns
Partial
<
O
>
|
undefined
Object literals
default
Options
default
Options
:
object
request
Interceptors
request
Interceptors
:
(Anonymous function)
[]
= [({ resourceType }: IRequestInterceptorArgs) => resourceType === 'font']
puppeteer
Config
puppeteer
Config
:
object
headless
headless
:
true
= true
Globals
Puppeteer
Runner
change
Options
exec
get
Options
run
merge
Options
default
Options
Simple
Puppeteer
Scraper
IInitializer
Args
IPuppeteer
Runner
IPuppeteer
Runner
Args
IPuppeteer
Runner
Options
IRequest
Interceptor
Args
IInitializer
IRequest
Interceptor
ISimple
Puppeteer
Scraper
Options
ISimple
Puppeteer
Scraper
Source
Data
Generated using
TypeDoc