Skip to main content
Open on GitHub

Beautiful Soup

Beautiful Soup is a Python package for parsing HTML and XML documents (including having malformed markup, i.e. non-closed tags, so named after tag soup). It creates a parse tree for parsed pages that can be used to extract data from HTML,[3] which is useful for web scraping.

安装与设置​

pip install beautifulsoup4

文档转换器​

查看一个 使用示例。

from langchain_community.document_loaders import BeautifulSoupTransformer