Skip to content

Decodo/decodo-langchain-ts

Repository files navigation

Decodo LangChain Tools

A Node.js LangChain plugin that enables developers to use Decodo's Scraper API alongside their LangChain applications.

Features

  • 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

Installation

npm install @decodo/langchain-ts

Quick Start

import { DecodoUniversalTool } from '@decodo/langchain-ts';

const scraperTool = new DecodoUniversalTool({
  username: 'web-advances-username',
  password: 'web-advances-password',
});

const agent = new Agent({
  tools: [scraperTool],
});

Available Tools

See the tools/ directory for a list of available tools.

Examples

See the exmaples/ to see tools in action.

Configuration

All tools accept a DecodoConfig object:

type DecodoConfig = {
  username: string; // Your Web Advanced product username
  password: string; // Your Web Advanced product password
};

API Parameters

See the Scraper API documentation for a list of available parameters

License

MIT

Support

For support, please visit Decodo's documentation or open an issue on GitHub.

About

Langchain bindings for Decodo

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •