mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Update single_url.ts
This commit is contained in:
parent
c3aeed510b
commit
7c339ea125
|
@ -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"
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user