Overview
Crawleo provides a dedicated LangChain integration package that makes it easy to use Crawleo’s web search and crawling capabilities in your LangChain applications.Installation
Install thelangchain-crawleo package:
Available Tools
The package provides two LangChain tools:CrawleoSearch
Web search tool powered by Crawleo’s Search API.
CrawleoCrawler
URL crawling tool powered by Crawleo’s Crawler API.
Quick Start
Basic Setup
Using Environment Variables
CrawleoSearch Tool
Perform web searches using the Search API:Parameters
CrawleoCrawler Tool
Crawl specific URLs:Parameters
Using with LangChain Agents
Create an Agent with Crawleo Tools
RAG Pipeline Example
Build a RAG pipeline with Crawleo:Best Practices
Use Markdown Output
Use Markdown Output
Always enable Markdown output (
markdown=True, which is the default) for LLM applications to minimize token usage.Handle Credits Limits
Handle Credits Limits
Implement retry logic for credits exhaustion errors:
Cache Results
Cache Results
Cache crawled content to avoid redundant API calls:
Resources
PyPI Package
View on PyPI
GitHub Examples
Code examples and samples