mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 13:30:37 +08:00
Revert "feat(scrape): scroll down/up with actions if fullpagescreenshot"
This reverts commit 815bfc8f07b3493ed91ff90afda123e7d84f44f9.
This commit is contained in:
parent
815bfc8f07
commit
e1a34b0a99
@ -210,26 +210,10 @@ export async function scrapSingleUrl(
|
|||||||
type: "wait" as const,
|
type: "wait" as const,
|
||||||
milliseconds: pageOptions.waitFor,
|
milliseconds: pageOptions.waitFor,
|
||||||
}] : []),
|
}] : []),
|
||||||
...(pageOptions.fullPageScreenshot ? [
|
|
||||||
{
|
|
||||||
type: "scroll" as const,
|
|
||||||
direction: "down" as const,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: "wait" as const,
|
|
||||||
milliseconds: 300,
|
|
||||||
},
|
|
||||||
] : []),
|
|
||||||
...((pageOptions.screenshot || pageOptions.fullPageScreenshot) ? [{
|
...((pageOptions.screenshot || pageOptions.fullPageScreenshot) ? [{
|
||||||
type: "screenshot" as const,
|
type: "screenshot" as const,
|
||||||
fullPage: !!pageOptions.fullPageScreenshot,
|
fullPage: !!pageOptions.fullPageScreenshot,
|
||||||
}] : []),
|
}] : []),
|
||||||
...(pageOptions.fullPageScreenshot ? [
|
|
||||||
{
|
|
||||||
type: "scroll" as const,
|
|
||||||
direction: "up" as const,
|
|
||||||
}
|
|
||||||
] : []),
|
|
||||||
...(pageOptions.actions ?? []),
|
...(pageOptions.actions ?? []),
|
||||||
],
|
],
|
||||||
}) : ({
|
}) : ({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user