mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 15:49:02 +08:00
Nick: waitFor fixes
This commit is contained in:
parent
5819f60688
commit
6bfd24d903
@ -140,7 +140,7 @@ export const scrapeOptions = z
|
|||||||
excludeTags: z.string().array().optional(),
|
excludeTags: z.string().array().optional(),
|
||||||
onlyMainContent: z.boolean().default(true),
|
onlyMainContent: z.boolean().default(true),
|
||||||
timeout: z.number().int().positive().finite().safe().optional(),
|
timeout: z.number().int().positive().finite().safe().optional(),
|
||||||
waitFor: z.number().int().nonnegative().finite().safe().max(60000).default(0),
|
waitFor: z.number().int().nonnegative().finite().safe().max(30000).default(0),
|
||||||
// Deprecate this to jsonOptions
|
// Deprecate this to jsonOptions
|
||||||
extract: extractOptions.optional(),
|
extract: extractOptions.optional(),
|
||||||
// New
|
// New
|
||||||
|
@ -153,7 +153,7 @@ export async function scrapeURLWithFireEngineChromeCDP(
|
|||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
type: "wait" as const,
|
type: "wait" as const,
|
||||||
milliseconds: meta.options.waitFor,
|
milliseconds: meta.options.waitFor > 30000 ? 30000 : meta.options.waitFor,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user