File tree Expand file tree Collapse file tree 6 files changed +24
-6
lines changed
camoufox-scraper/src/internals
cheerio-scraper/src/internals
jsdom-scraper/src/internals
playwright-scraper/src/internals
puppeteer-scraper/src/internals
web-scraper/src/internals Expand file tree Collapse file tree 6 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,10 @@ export class CrawlerSetup implements CrawlerSetupOptions {
241
241
respectRobotsTxtFile : this . input . respectRobotsTxtFile ,
242
242
maxConcurrency : this . input . maxConcurrency ,
243
243
maxRequestRetries : this . input . maxRequestRetries ,
244
- maxRequestsPerCrawl : this . input . maxPagesPerCrawl ,
244
+ maxRequestsPerCrawl :
245
+ this . input . maxPagesPerCrawl === 0
246
+ ? undefined
247
+ : this . input . maxPagesPerCrawl ,
245
248
proxyConfiguration : ( await Actor . createProxyConfiguration (
246
249
this . input . proxyConfiguration ,
247
250
) ) as any as ProxyConfiguration ,
Original file line number Diff line number Diff line change @@ -231,7 +231,10 @@ export class CrawlerSetup implements CrawlerSetupOptions {
231
231
failedRequestHandler : this . _failedRequestHandler . bind ( this ) ,
232
232
respectRobotsTxtFile : this . input . respectRobotsTxtFile ,
233
233
maxRequestRetries : this . input . maxRequestRetries ,
234
- maxRequestsPerCrawl : this . input . maxPagesPerCrawl ,
234
+ maxRequestsPerCrawl :
235
+ this . input . maxPagesPerCrawl === 0
236
+ ? undefined
237
+ : this . input . maxPagesPerCrawl ,
235
238
additionalMimeTypes : this . input . additionalMimeTypes ,
236
239
autoscaledPoolOptions : {
237
240
maxConcurrency : this . input . maxConcurrency ,
Original file line number Diff line number Diff line change @@ -232,7 +232,10 @@ export class CrawlerSetup implements CrawlerSetupOptions {
232
232
failedRequestHandler : this . _failedRequestHandler . bind ( this ) ,
233
233
respectRobotsTxtFile : this . input . respectRobotsTxtFile ,
234
234
maxRequestRetries : this . input . maxRequestRetries ,
235
- maxRequestsPerCrawl : this . input . maxPagesPerCrawl ,
235
+ maxRequestsPerCrawl :
236
+ this . input . maxPagesPerCrawl === 0
237
+ ? undefined
238
+ : this . input . maxPagesPerCrawl ,
236
239
additionalMimeTypes : this . input . additionalMimeTypes ,
237
240
autoscaledPoolOptions : {
238
241
maxConcurrency : this . input . maxConcurrency ,
Original file line number Diff line number Diff line change @@ -275,7 +275,10 @@ export class CrawlerSetup implements CrawlerSetupOptions {
275
275
respectRobotsTxtFile : this . input . respectRobotsTxtFile ,
276
276
maxConcurrency : this . input . maxConcurrency ,
277
277
maxRequestRetries : this . input . maxRequestRetries ,
278
- maxRequestsPerCrawl : this . input . maxPagesPerCrawl ,
278
+ maxRequestsPerCrawl :
279
+ this . input . maxPagesPerCrawl === 0
280
+ ? undefined
281
+ : this . input . maxPagesPerCrawl ,
279
282
proxyConfiguration : ( await Actor . createProxyConfiguration (
280
283
this . input . proxyConfiguration ,
281
284
) ) as any as ProxyConfiguration ,
Original file line number Diff line number Diff line change @@ -272,7 +272,10 @@ export class CrawlerSetup implements CrawlerSetupOptions {
272
272
respectRobotsTxtFile : this . input . respectRobotsTxtFile ,
273
273
maxConcurrency : this . input . maxConcurrency ,
274
274
maxRequestRetries : this . input . maxRequestRetries ,
275
- maxRequestsPerCrawl : this . input . maxPagesPerCrawl ,
275
+ maxRequestsPerCrawl :
276
+ this . input . maxPagesPerCrawl === 0
277
+ ? undefined
278
+ : this . input . maxPagesPerCrawl ,
276
279
proxyConfiguration : ( await Actor . createProxyConfiguration (
277
280
this . input . proxyConfiguration ,
278
281
) ) as any as ProxyConfiguration ,
Original file line number Diff line number Diff line change @@ -301,7 +301,10 @@ export class CrawlerSetup implements CrawlerSetupOptions {
301
301
? MAX_CONCURRENCY_IN_DEVELOPMENT
302
302
: this . input . maxConcurrency ,
303
303
maxRequestRetries : this . input . maxRequestRetries ,
304
- maxRequestsPerCrawl : this . input . maxPagesPerCrawl ,
304
+ maxRequestsPerCrawl :
305
+ this . input . maxPagesPerCrawl === 0
306
+ ? undefined
307
+ : this . input . maxPagesPerCrawl ,
305
308
proxyConfiguration : ( await Actor . createProxyConfiguration (
306
309
this . input . proxyConfiguration ,
307
310
) ) as any as ProxyConfiguration ,
You can’t perform that action at this time.
0 commit comments