Prerequisites
The following example requires thespider-client
library.
Example
The following agent will run a search query to get the latest news in USA and scrape the first search result. The agent will return the scraped data in markdown format.cookbook/tools/spider_tools.py
Toolkit Params
Parameter | Type | Default | Description |
---|---|---|---|
max_results | int | - | The maximum number of search results to return |
url | str | - | The url to be scraped or crawled |
Toolkit Functions
Function | Description |
---|---|
search | Searches the web for the given query. |
scrape | Scrapes the given url. |
crawl | Crawls the given url. |
Information
- View on Github