Skip to content

Commit

Permalink
b站板块可以选择不登录(部分用户不登录也可以正常使用)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Sep 3, 2023
1 parent 07ff120 commit ba2eb92
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,7 @@ cmd运行`npm i docsify-cli -g`

- 2023-09-03
- 新增 谷歌bard的接入,支持上下文记忆。
- b站板块可以选择不登录(部分用户不登录也可以正常使用)

</details>

Expand Down
2 changes: 2 additions & 0 deletions bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ async def run_trends_copywriting():
)
elif config.get("bilibili", "login_type") == "手机扫码":
credential = login.login_with_qrcode()
elif config.get("bilibili", "login_type") == "不登录":
credential = None
else:
credential = login.login_with_qrcode()

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ def bilibili_gui_create():
"label_text": "登录方式",
"label_tip": "选择登录b站账号的方式,用于获取b站账号相关信息",
"widget_type": "combo_box",
"combo_data_list": ['手机扫码', 'cookie'],
"combo_data_list": ['手机扫码', 'cookie', '不登录'],
"data": bilibili_config["login_type"],
"main_obj_name": "bilibili",
"index": 1
Expand Down
10 changes: 10 additions & 0 deletions tests/test_poe/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import poe
import json

token = ''
proxy = 'http://127.0.0.1:10811'
# proxy = None

client = poe.Client(token=token, proxy=proxy)

print(json.dumps(client.bot_names, indent=2))

0 comments on commit ba2eb92

Please sign in to comment.