0

Update README.md

This commit is contained in:
Nicolas 2024-05-08 17:46:35 -07:00
parent 1033034201
commit 3b5f71c1e8

View File

@ -379,9 +379,11 @@ const schema = z.object({
.length(5) .length(5)
.describe("Top 5 stories on Hacker News"), .describe("Top 5 stories on Hacker News"),
}); });
const scrapeResult = await app.scrapeUrl("https://firecrawl.dev", { const scrapeResult = await app.scrapeUrl("https://firecrawl.dev", {
extractorOptions: { extractionSchema: schema }, extractorOptions: { extractionSchema: schema },
}); });
console.log(scrapeResult.data["llm_extraction"]); console.log(scrapeResult.data["llm_extraction"]);
``` ```