跳到主要内容

IMSDB

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

设置

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();

此页面是否对您有帮助?


您也可以留下详细的反馈 在 GitHub 上.

© . This site is unofficial and not affiliated with LangChain, Inc.
这些文档随着 LangChain v1.0 在 2025 年 10 月的发布而弃用,并且不再维护。 请访问 v1.0 文档