Skip to main content

IMSDB

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

¥This example goes over how to load data from the internet movie script database website, using Cheerio. One document will be created for each page.

设置

¥Setup

npm install @langchain/community @langchain/core cheerio

用法

¥Usage

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

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

const docs = await loader.load();