langchain_community.document_loaders.bilibili.BiliBiliLoader¶

class langchain_community.document_loaders.bilibili.BiliBiliLoader(video_urls: List[str], sessdata: str = '', bili_jct: str = '', buvid3: str = '')[source]¶

Load fetching transcripts from BiliBili videos.

Initialize the loader with BiliBili video URLs and authentication cookies. if no authentication cookies are provided, the loader can’t get transcripts and will only fetch videos info.

Parameters
  • video_urls (List[str]) – List of BiliBili video URLs.

  • sessdata (str) – SESSDATA cookie value for authentication.

  • bili_jct (str) – BILI_JCT cookie value for authentication.

  • buvid3 (str) – BUVI3 cookie value for authentication.

Methods

__init__(video_urls[, sessdata, bili_jct, ...])

Initialize the loader with BiliBili video URLs and authentication cookies.

alazy_load()

A lazy loader for Documents.

aload()

Load data into Document objects.

lazy_load()

A lazy loader for Documents.

load()

Load and return a list of documents containing video transcripts.

load_and_split([text_splitter])

Load Documents and split into chunks.

__init__(video_urls: List[str], sessdata: str = '', bili_jct: str = '', buvid3: str = '')[source]¶

Initialize the loader with BiliBili video URLs and authentication cookies. if no authentication cookies are provided, the loader can’t get transcripts and will only fetch videos info.

Parameters
  • video_urls (List[str]) – List of BiliBili video URLs.

  • sessdata (str) – SESSDATA cookie value for authentication.

  • bili_jct (str) – BILI_JCT cookie value for authentication.

  • buvid3 (str) – BUVI3 cookie value for authentication.

async alazy_load() AsyncIterator[Document]¶

A lazy loader for Documents.

Return type

AsyncIterator[Document]

async aload() List[Document]¶

Load data into Document objects.

Return type

List[Document]

lazy_load() Iterator[Document]¶

A lazy loader for Documents.

Return type

Iterator[Document]

load() List[Document][source]¶

Load and return a list of documents containing video transcripts.

Returns

List of Document objects transcripts and metadata.

Return type

List[Document]

load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document]¶

Load Documents and split into chunks. Chunks are returned as Documents.

Do not override this method. It should be considered to be deprecated!

Parameters

text_splitter (Optional[TextSplitter]) – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.

Returns

List of Documents.

Return type

List[Document]

Examples using BiliBiliLoader¶