Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Nick: extract urls to extract
Nicolasd02a8bcb82a8
diff --git a/apps/js-sdk/example.js b/apps/js-sdk/example.jsindex 166cc18da..21bdb2a1b 100644--- a/apps/js-sdk/example.js+++ b/apps/js-sdk/example.js@@ -50,7 +50,7 @@ const main = async () => {links: z.array(z.string())});- const extractResult = await app.extractUrls(['https://firecrawl.dev'], {+ const extractResult = await app.extract(['https://firecrawl.dev'], {prompt: "Extract the title, description, and links from the website",schema: extractSchema});diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.tsindex 16cf674f8..b6737855e 100644--- a/apps/js-sdk/firecrawl/src/index.ts+++ b/apps/js-sdk/firecrawl/src/index.ts@@ -699,12 +699,12 @@ export default class FirecrawlApp {}/**- * Extracts information from a URL using the Firecrawl API.+ * Extracts information from URLs using the Firecrawl API.* @param url - The URL to extract information from.* @param params - Additional parameters for the extract request.* @returns The response from the extract operation.*/- async extractUrls(urls: string[], params?: ExtractParams): Promise<ExtractResponse | ErrorResponse> {+ async extract(urls: string[], params?: ExtractParams): Promise<ExtractResponse | ErrorResponse> {const headers = this.prepareHeaders();if (!params?.prompt) {diff --git a/apps/python-sdk/example.py b/apps/python-sdk/example.pyindex eba7cfd24..686b76763 100644--- a/apps/python-sdk/example.py+++ b/apps/python-sdk/example.py@@ -124,7 +124,7 @@ class ExtractSchema(BaseModel):extract_schema = ExtractSchema.schema()# Perform the extraction-extract_result = app.extract_urls(['https://firecrawl.dev'], {+extract_result = app.extract(['https://firecrawl.dev'], {'prompt': "Extract the title, description, and links from the website",'schema': extract_schema})diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.pyindex 9dc9b47b3..bb87906c1 100644--- a/apps/python-sdk/firecrawl/firecrawl.py+++ b/apps/python-sdk/firecrawl/firecrawl.py@@ -460,7 +460,7 @@ class FirecrawlApp:self._handle_error(response, 'check batch scrape status')- def extract_urls(self, urls: List[str], params: Optional[ExtractParams] = None) -> Union[ExtractResponse, ErrorResponse]:+ def extract(self, urls: List[str], params: Optional[ExtractParams] = None) -> Union[ExtractResponse, ErrorResponse]:"""Extracts information from a URL using the Firecrawl API.