[Feature] RSS Feed loader (#942)

This commit is contained in:
Sidharth Mohanty
2023-12-08 03:48:35 +05:30
committed by GitHub
parent 0ea8ab228c
commit d8897ce356
7 changed files with 241 additions and 15 deletions

View File

@@ -196,8 +196,7 @@ def detect_datatype(source: Any) -> DataType:
formatted_source = format_source(str(source), 30)
if url:
from langchain.document_loaders.youtube import \
ALLOWED_NETLOCK as YOUTUBE_ALLOWED_NETLOCS
from langchain.document_loaders.youtube import ALLOWED_NETLOCK as YOUTUBE_ALLOWED_NETLOCS
if url.netloc in YOUTUBE_ALLOWED_NETLOCS:
logging.debug(f"Source of `{formatted_source}` detected as `youtube_video`.")