@detiq/crawler 1.1.26 → 1.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/crawler.js +2 -3
- package/dist/crawler.js.map +2 -2
- package/dist/job-queue.js +299 -64
- package/dist/job-queue.js.map +3 -3
- package/package.json +1 -1
- package/src/crawler.ts +17 -2
- package/src/failure-analysis-agent.ts +2 -1
- package/src/job-queue.ts +109 -30
- package/types/crawler.d.ts +4 -0
- package/types/job-queue.d.ts +44 -3
package/dist/crawler.js
CHANGED
|
@@ -266,8 +266,7 @@ async function launchChromeCDP(execPath, extraArgs, proxy, useStealthPlugin = tr
|
|
|
266
266
|
`--remote-debugging-port=${port}`,
|
|
267
267
|
"--remote-allow-origins=*",
|
|
268
268
|
"--no-first-run",
|
|
269
|
-
"--no-default-browser-check"
|
|
270
|
-
"--window-size=1280,900"
|
|
269
|
+
"--no-default-browser-check"
|
|
271
270
|
]
|
|
272
271
|
});
|
|
273
272
|
const deadline = Date.now() + 1e4;
|
|
@@ -541,7 +540,7 @@ async function crawlProject(opts, onProgress) {
|
|
|
541
540
|
"--disable-blink-features=AutomationControlled",
|
|
542
541
|
"--disable-http2",
|
|
543
542
|
"--lang=en-US,en",
|
|
544
|
-
|
|
543
|
+
`--window-size=${opts.viewportWidth ?? 1440},${opts.viewportHeight ?? 900}`,
|
|
545
544
|
"--disable-features=IsolateOrigins,site-per-process"
|
|
546
545
|
];
|
|
547
546
|
const chromeArgs = isDocker ? [
|