A Node.js LangChain plugin that enables developers to use Decodo's Scraper API alongside their LangChain applications.
- Web Scraping: Scrape any URL and retrieve HTML content
- Google Search: Search Google and retrieve structured results
- Amazon Search: Search Amazon and retrieve structured product data
- Reddit Scraping: Scrape Reddit posts and subreddits
- Full TypeScript Support: Complete type definitions for all parameters
- LangChain Integration: Seamless integration with LangChain's Tool system
npm install @decodo/langchain-ts
import { DecodoUniversalTool } from '@decodo/langchain-ts';
const scraperTool = new DecodoUniversalTool({
username: 'web-advances-username',
password: 'web-advances-password',
});
const agent = new Agent({
tools: [scraperTool],
});
See the tools/
directory for a list of available tools.
See the exmaples/
to see tools in action.
All tools accept a DecodoConfig
object:
type DecodoConfig = {
username: string; // Your Web Advanced product username
password: string; // Your Web Advanced product password
};
See the Scraper API documentation for a list of available parameters
MIT
For support, please visit Decodo's documentation or open an issue on GitHub.