mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 09:03:15 +00:00
No crawler, no sitemap
This commit is contained in:
10
application/parser/remote/web_loader.py
Normal file
10
application/parser/remote/web_loader.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from application.parser.remote.base import BaseRemote
|
||||
|
||||
class WebLoader(BaseRemote):
|
||||
def __init__(self):
|
||||
from langchain.document_loaders import WebBaseLoader
|
||||
self.loader = WebBaseLoader
|
||||
|
||||
def load_data(self, urls):
|
||||
loader = self.loader(urls)
|
||||
return loader.load()
|
||||
Reference in New Issue
Block a user