const crawlResponse = await firecrawl_app.scrapeUrl(url, {
formats: [
"markdown",
"html",
...(options.includeScreenshot ? (["screenshot@fullPage"] as any) : []),
],
...(options.includeScreenshot
? {
actions: [{ type: "screenshot", fullPage: true }],
}
: {}),
});
const crawlResponse = await firecrawl_app.scrapeUrl(url, {
formats: [
"markdown",
"html",
...(options.includeScreenshot ? (["screenshot@fullPage"] as any) : []),
],
...(options.includeScreenshot
? {
actions: [{ type: "screenshot", fullPage: true }],
}
: {}),
});