From 1ed4228822498fd58d33d377572af0821c496b20 Mon Sep 17 00:00:00 2001 From: Yuekai Zhang Date: Thu, 18 May 2023 21:56:51 +0800 Subject: [PATCH] Fix bilibili (#4860) # Fix bilibili api import error bilibili-api package is depracated and there is no sync module. Fixes #2673 #2724 ## Before submitting ## Who can review? Community members can review the PR once tests pass. Tag maintainers/contributors who might be interested: @vowelparrot @liaokongVFX --- docs/modules/indexes/document_loaders/examples/bilibili.ipynb | 2 +- langchain/document_loaders/bilibili.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/indexes/document_loaders/examples/bilibili.ipynb b/docs/modules/indexes/document_loaders/examples/bilibili.ipynb index 7663bbd7..b217b655 100644 --- a/docs/modules/indexes/document_loaders/examples/bilibili.ipynb +++ b/docs/modules/indexes/document_loaders/examples/bilibili.ipynb @@ -23,7 +23,7 @@ }, "outputs": [], "source": [ - "#!pip install bilibili-api" + "#!pip install bilibili-api-python" ] }, { diff --git a/langchain/document_loaders/bilibili.py b/langchain/document_loaders/bilibili.py index 962aa4df..08aeb5ba 100644 --- a/langchain/document_loaders/bilibili.py +++ b/langchain/document_loaders/bilibili.py @@ -32,7 +32,7 @@ class BiliBiliLoader(BaseLoader): except ImportError: raise ValueError( "requests package not found, please install it with " - "`pip install bilibili-api`" + "`pip install bilibili-api-python`" ) bvid = re.search(r"BV\w+", url)