mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-06-23 21:00:30 +08:00
fix(chromium-loader): ensure it subclasses langchain's base loader
This commit is contained in:
parent
fc2aa3ac1c
commit
b54d984c13
@ -2,6 +2,7 @@ import asyncio
|
||||
import logging
|
||||
from typing import Any, AsyncIterator, Iterator, List, Optional
|
||||
|
||||
from langchain_community.document_loaders.base import BaseLoader
|
||||
from langchain_core.documents import Document
|
||||
|
||||
from ..utils import Proxy, dynamic_import, parse_or_search_proxy
|
||||
@ -10,7 +11,7 @@ from ..utils import Proxy, dynamic_import, parse_or_search_proxy
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ChromiumLoader:
|
||||
class ChromiumLoader(BaseLoader):
|
||||
"""scrapes HTML pages from URLs using a (headless) instance of the
|
||||
Chromium web driver with proxy protection
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user