Skip to content

Commit abe4354

Browse files
feat: add baidu_share.md (#178)
1 parent 5be26f6 commit abe4354

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

docs/guide/drivers/baidu_share.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# This is the icon of the page
3+
icon: state
4+
# This control sidebar order
5+
order: 11
6+
# A page can have multiple categories
7+
category:
8+
- Guide
9+
# A page can have multiple tags
10+
tag:
11+
- Storage
12+
- Guide
13+
# this page is sticky in article list
14+
sticky: true
15+
# this page will appear in starred articles
16+
star: true
17+
---
18+
19+
# BaiduYun Share Link Support
20+
21+
Driver for BaiduYun share link, supports downloading but not uploading, using an unofficial api.
22+
23+
## Settings
24+
25+
Viewing folders require the surl and pwd, and BDUSS is needed for downloading.
26+
surl is the part between `pan.baidu.com/s/` and the `?`, and pwd is the password if the link got one.
27+
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/).
28+
29+
## Developing
30+
31+
The api is from [github.com/yuantuo666/baiduwp-php](https://github.com/yuantuo666/baiduwp-php), an unofficial project.
32+
We have developed the folder viewing and file downloading function, further developments are welcome.
33+
Since we don't have an official document, there might be some compatible problems. You can give feedback on github.
34+
We can't break those limits from Baidu and you should follow the official laws.

docs/zh/guide/drivers/baidu_share.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# This is the icon of the page
3+
icon: state
4+
# This control sidebar order
5+
order: 11
6+
# A page can have multiple categories
7+
category:
8+
- Guide
9+
# A page can have multiple tags
10+
tag:
11+
- Storage
12+
- Guide
13+
# this page is sticky in article list
14+
sticky: true
15+
# this page will appear in starred articles
16+
star: true
17+
---
18+
19+
# 百度网盘分享链接
20+
21+
挂载百度网盘分享链接,可供下载,无上传编辑等功能,api非官方。
22+
23+
## 配置
24+
25+
浏览目录需设置分享surl和pwd,下载还需设置BDUSS。
26+
surl即为分享地址`pan.baidu.com/s/``?`前部分,pwd填4位提取码,无提取码留空。
27+
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/)
28+
29+
## 开发
30+
31+
接口来自[github.com/yuantuo666/baiduwp-php](https://github.com/yuantuo666/baiduwp-php)项目,非官方api。
32+
当前仅移植目录浏览和普通下载功能,欢迎继续开发。
33+
因缺失官方文档,不排除存在一些兼容问题,可至github反馈,建议提供复现链接以供调试。
34+
不能突破速度限制,请合理使用。

0 commit comments

Comments
 (0)