Firecrawl
Last updated
Last updated
FirecrawlTools enable an Agent to perform web crawling and scraping tasks.
The following example requires the firecrawl-py
library and an API key which can be obtained from .
The following agent will scrape the content from and return a summary of the content:
cookbook/tools/firecrawl_tools.py
api_key
str
None
Optional API key for authentication purposes.
formats
List[str]
None
Optional list of formats to be used for the operation.
limit
int
10
Maximum number of items to retrieve. The default value is 10.
scrape
bool
True
Enables the scraping functionality. Default is True.
crawl
bool
False
Enables the crawling functionality. Default is False.
scrape_website
Scrapes a website using Firecrawl. Parameters include url
to specify the URL to scrape. The function supports optional formats if specified. Returns the results of the scraping in JSON format.
crawl_website
Crawls a website using Firecrawl. Parameters include url
to specify the URL to crawl, and an optional limit
to define the maximum number of pages to crawl. The function supports optional formats and returns the crawling results in JSON format.