Skip to main content

Documentation Index

Fetch the complete documentation index at: https://langchain-zh.cn/llms.txt

Use this file to discover all available pages before exploring further.

本示例演示了如何使用 Cheerio 从 College Confidential 网站加载数据。每个页面将创建一个文档。

设置

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

使用方式

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