跳到主要内容
此示例介绍了如何使用 Cheerio 从互联网电影剧本数据库网站加载数据。每页将创建一个文档。

设置

npm
npm install @langchain/community @langchain/core cheerio

用法

import { IMSDBLoader } from "@langchain/community/document_loaders/web/imsdb";

const loader = new IMSDBLoader("https://imsdb.com/scripts/BlacKkKlansman.html");

const docs = await loader.load();

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.