Skip to content

The agent engineering platform.

community[patch]: `Redundant` Parser checker for Webbaseloader (#30632)

Mohammad Mohtashimbff56c5fa6eb
diff --git a/libs/community/langchain_community/document_loaders/web_base.py b/libs/community/langchain_community/document_loaders/web_base.py
index d84f585b27..54be215705 100644
--- a/libs/community/langchain_community/document_loaders/web_base.py
+++ b/libs/community/langchain_community/document_loaders/web_base.py
@@ -367,9 +367,6 @@ class WebBaseLoader(BaseLoader):
def scrape(self, parser: Union[str, None] = None) -> Any:
"""Scrape data from webpage and return it in BeautifulSoup format."""
- if parser is None:
- parser = self.default_parser
-
return self._scrape(self.web_path, parser=parser, bs_kwargs=self.bs_kwargs)
def lazy_load(self) -> Iterator[Document]: