Update single_url.ts

This commit is contained in:
Rafael Miller 2024-08-12 17:55:10 -03:00 committed by GitHub
parent c3aeed510b
commit 7c339ea125
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,14 +93,14 @@ function getScrapingFallbackOrder(
useFireEngine ? "fire-engine;chrome-cdp" : undefined, useFireEngine ? "fire-engine;chrome-cdp" : undefined,
useScrapingBee ? "scrapingBee" : undefined, useScrapingBee ? "scrapingBee" : undefined,
useScrapingBee ? "scrapingBeeLoad" : undefined, useScrapingBee ? "scrapingBeeLoad" : undefined,
useDatabaseAuth ? undefined : "playwright", useFireEngine ? undefined : "playwright",
"fetch", "fetch",
].filter(Boolean); ].filter(Boolean);
if (isWaitPresent || isScreenshotPresent || isHeadersPresent) { if (isWaitPresent || isScreenshotPresent || isHeadersPresent) {
defaultOrder = [ defaultOrder = [
"fire-engine", "fire-engine",
useDatabaseAuth ? undefined : "playwright", useFireEngine ? undefined : "playwright",
...defaultOrder.filter( ...defaultOrder.filter(
(scraper) => scraper !== "fire-engine" && scraper !== "playwright" (scraper) => scraper !== "fire-engine" && scraper !== "playwright"
), ),