diff --git a/README.md b/README.md index 65f9c6a4..051c5c5d 100644 --- a/README.md +++ b/README.md @@ -846,7 +846,8 @@ Proceed (Y/n)? y ### 平台 #### b站直播监听 -[bilibili-api](https://github.com/Nemo2011/bilibili-api) +监听库:[bilibili-api](https://github.com/Nemo2011/bilibili-api) +需要进行扫描登录或者配置cookie等信息,才能稳定监听弹幕。注意!!!请使用小号登录,有封号风险!!! #### 抖音弹幕获取 `dy.py`稳定:[dy-barrage-grab](https://gitee.com/haodong108/dy-barrage-grab) diff --git a/bilibili.py b/bilibili.py index 7e93ad3a..8197ce73 100644 --- a/bilibili.py +++ b/bilibili.py @@ -190,6 +190,9 @@ async def run_trends_copywriting(): try: if config.get("bilibili", "login_type") == "cookie": + logging.info("b站登录后F12抓网络包获取cookie,强烈建议使用小号!有封号风险") + logging.info("b站登录后,F12控制台,输入 window.localStorage.ac_time_value 回车获取(如果没有,请重新登录)") + bilibili_cookie = config.get("bilibili", "cookie") bilibili_ac_time_value = config.get("bilibili", "ac_time_value") if bilibili_ac_time_value == "": diff --git a/requirements_common.txt b/requirements_common.txt index 991aebed..8328213e 100644 --- a/requirements_common.txt +++ b/requirements_common.txt @@ -8,7 +8,7 @@ asyncio==3.4.3 attrs==23.1.0 backcall==0.2.0 beautifulsoup4==4.11.2 -bilibili-api-python==15.5.4 +bilibili-api-python==16.0.0 bilibili-api blis==0.7.9 Brotli==1.0.9