Spider
Last updated
Last updated
SpiderTools is an open source web Scraper & Crawler that returns LLM-ready data. To start using Spider, you need an API key from the .
The following example requires the spider-client
library.
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
max_results
int
-
The maximum number of search results to return
url
str
-
The url to be scraped or crawled
search
Searches the web for the given query.
scrape
Scrapes the given url.
crawl
Crawls the given url.