Tools
Apify
ApifyTools enable an Agent to access the Apify API and run actors.
Prerequisites
The following example requires the apify-client
library and an API token which can be obtained from Apify.
Example
The following agent will use Apify to crawl the webpage: https://docs.phidata.com/introduction and summarize it.
cookbook/tools/apify_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
api_key | str | - | API key for authentication purposes. |
website_content_crawler | bool | True | Enables the functionality to crawl a website using website-content-crawler actor. |
web_scraper | bool | False | Enables the functionality to crawl a website using web_scraper actor. |
Toolkit Functions
Function | Description |
---|---|
website_content_crawler | Crawls a website using Apify’s website-content-crawler actor. |
web_scrapper | Scrapes a website using Apify’s web-scraper actor. |
Information
- View on Github