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