Skip to content

Commit

Permalink
Merge pull request #279 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
更新b站相关文档和依赖;补充提示信息
  • Loading branch information
Ikaros-521 authored Sep 2, 2023
2 parents 38c046d + 3ad9c31 commit ec2a3ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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等信息,才能稳定监听弹幕。注意!!!请使用小号登录,有封号风险!!!

#### <span id="dy">抖音弹幕获取</span>
`dy.py`稳定:[dy-barrage-grab](https://gitee.com/haodong108/dy-barrage-grab)
Expand Down
3 changes: 3 additions & 0 deletions bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "":
Expand Down
2 changes: 1 addition & 1 deletion requirements_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec2a3ed

Please sign in to comment.