Skip to content

Commit f611437

Browse files
docs: add BaiduShare QA (#186)
* feat: add baidu_share.md * docs: add BaiduShare QA
1 parent 551ee51 commit f611437

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

docs/guide/drivers/baidu_share.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This is the icon of the page
33
icon: state
44
# This control sidebar order
5-
order: 11
5+
order: 12
66
# A page can have multiple categories
77
category:
88
- Guide
@@ -16,7 +16,7 @@ sticky: true
1616
star: true
1717
---
1818

19-
# BaiduYun Share Link Support
19+
# BaiduYun Share Link
2020

2121
Driver for BaiduYun share link, supports downloading but not uploading, using an unofficial api.
2222

@@ -26,6 +26,14 @@ Viewing folders require the surl and pwd, and BDUSS is needed for downloading.
2626
surl is the part between `pan.baidu.com/s/` and the `?`, and pwd is the password if the link got one.
2727
You can get BDUSS from your cookie, follow the [guidance](https://blog.imwcr.cn/2022/11/24/%e5%a6%82%e4%bd%95%e6%8a%93%e5%8c%85%e8%8e%b7%e5%8f%96%e7%99%be%e5%ba%a6%e7%bd%91%e7%9b%98%e7%bd%91%e9%a1%b5%e7%89%88%e5%ae%8c%e6%95%b4-cookie/).
2828

29+
## QA
30+
|setting|error message|tips|
31+
|---|---|---|
32+
|surl|`{"errno":2,"errtype":0}`|invalid share link|
33+
|pwd|`{"errno":-130,"errtype":"mispwd-9"}`|invalid password|
34+
|BDUSS|`{"errno":9019,"errmsg":"need verify"}`|invalid BDUSS, get a new one|
35+
|UA|`{"error_code":31326,"error_msg":"user is not authorized, hitcode:119"}`|invalid user-agent, set a non-browser UA(ex. netdisk) or use web proxy|
36+
2937
## Developing
3038

3139
The api is from [github.com/yuantuo666/baiduwp-php](https://github.com/yuantuo666/baiduwp-php), an unofficial project.

docs/zh/guide/drivers/baidu_share.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ star: true
2626
surl即为分享地址`pan.baidu.com/s/``?`前部分,pwd填4位提取码,无提取码留空。
2727
BDUSS由cookie中提取,[参考教程](https://blog.imwcr.cn/2022/11/24/%e5%a6%82%e4%bd%95%e6%8a%93%e5%8c%85%e8%8e%b7%e5%8f%96%e7%99%be%e5%ba%a6%e7%bd%91%e7%9b%98%e7%bd%91%e9%a1%b5%e7%89%88%e5%ae%8c%e6%95%b4-cookie/)
2828

29+
## QA
30+
|出错配置|典型报错|修复说明|
31+
|---|---|---|
32+
|surl|`{"errno":2,"errtype":0}`|分享链接可能失效, 检查链接状态|
33+
|pwd|`{"errno":-130,"errtype":"mispwd-9"}`|分享密码错误|
34+
|BDUSS|`{"errno":9019,"errmsg":"need verify"}`|BDUSS无效|
35+
|UA|`{"error_code":31326,"error_msg":"user is not authorized, hitcode:119"}`|user-agent违反百度限制, 访问端需设置非浏览器UA(如netdisk)或开启Web代理|
36+
2937
## 开发
3038

3139
接口来自[github.com/yuantuo666/baiduwp-php](https://github.com/yuantuo666/baiduwp-php)项目,非官方api。

0 commit comments

Comments
 (0)