Skip to main content

大学机密

¥College Confidential

本示例介绍如何使用 Cheerio 从大学机密网站加载数据。将为每个页面创建一个文档。

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

设置

¥Setup

npm install @langchain/community @langchain/core cheerio

用法

¥Usage

import { CollegeConfidentialLoader } from "@langchain/community/document_loaders/web/college_confidential";

const loader = new CollegeConfidentialLoader(
"https://www.collegeconfidential.com/colleges/brown-university/"
);

const docs = await loader.load();