Skip to main content
This guide provides a quick overview for getting started with BeautifulSoup4 document loader. For detailed documentation of all BeautifulSoup4 features and configurations head to the API reference.

概述

集成详情

加载器特性

设置

To access BSHTMLLoader document loader you’ll need to install the langchain-community integration package and the bs4 Python 包。

凭证

No credentials are needed to use the BSHTMLLoader class. 要启用模型调用的自动追踪,请设置你的 LangSmith API 密钥:

安装

安装 langchain-community and bs4

初始化

现在我们可以实例化模型对象并加载文档:
  • TODO: Update model instantiation with relevant params.

加载

惰性加载

Adding separator to BS4

我们可以also pass a separator to use when calling get_text on the soup

API 参考

For detailed documentation of all BSHTMLLoader features and configurations head to the API reference