crawlee-one / Exports / PushRequestsOptions
Name | Type |
---|---|
T |
extends Exclude <CrawlerUrl , string > = Exclude <CrawlerUrl , string > |
• Optional
filter: (req
: T
) => unknown
▸ (req
): unknown
Option to filter a request before pushing it to the RequestQueue.
This serves mainly to allow users to filter the requests from actor input UI.
Name | Type |
---|---|
req |
T |
unknown
• Optional
io: CrawleeOneIO
<any
, any
, object
>
• Optional
log: Log
• Optional
maxCount: number
If set, only at most this many requests will be added to the RequestQueue.
The count is determined from the RequestQueue that's used for the crawler run.
This means that if maxCount
is set to 50, but the
associated RequestQueue already handled 40 requests, then only 10 new requests
will be processed.
• Optional
queueOptions: RequestQueueOperationOptions
• Optional
requestQueueId: string
ID of the RequestQueue to which the data should be pushed
• Optional
transform: (req
: T
) => MaybePromise
<T
>
▸ (req
): MaybePromise
<T
>
Option to freely transform a request before pushing it to the RequestQueue.
This serves mainly to allow users to transform the requests from actor input UI.
Name | Type |
---|---|
req |
T |
MaybePromise
<T
>