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,
useScrapingBee ? "scrapingBee" : undefined,
useScrapingBee ? "scrapingBeeLoad" : undefined,
useDatabaseAuth ? undefined : "playwright",
useFireEngine ? undefined : "playwright",
"fetch",
].filter(Boolean);
if (isWaitPresent || isScreenshotPresent || isHeadersPresent) {
defaultOrder = [
"fire-engine",
useDatabaseAuth ? undefined : "playwright",
useFireEngine ? undefined : "playwright",
...defaultOrder.filter(
(scraper) => scraper !== "fire-engine" && scraper !== "playwright"
),