说明#
百度云盘可以通过使用rclone挂载openlist提供的webdav来进行302使用
Rclone 配置#
> rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
Enter name for new remote.
name> baidu
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
1 / 1Fichier
\ (fichier)
...
56 / WebDAV
\ (webdav)
...
Storage> 56
Option url.
URL of http host to connect to.
E.g. https://example.com.
Enter a value.
url> https://<openlist_url>/dav/
Option vendor.
Name of the WebDAV site/service/software you are using.
Choose a number from below, or type in your own value.
Press Enter to leave empty.
1 / Fastmail Files
\ (fastmail)
...
7 / Other site/service or software
\ (other)
vendor> 7
Option user.
User name.
In case NTLM authentication is used, the username should be in the format 'Domain\User'.
Enter a value. Press Enter to leave empty.
user> rclone
Option pass.
Password.
Choose an alternative below. Press Enter for the default (n).
y) Yes, type in my own password
g) Generate random password
n) No, leave this optional password blank (default)
y/g/n> y
Enter the password:
password:
Confirm the password:
password:
Option bearer_token.
Bearer token instead of user/pass (e.g. a Macaroon).
Enter a value. Press Enter to leave empty.
bearer_token>
Edit advanced config?
y) Yes
n) No (default)
y/n>
Configuration complete.
Options:
- type: webdav
- url: https://<openlist_url>/dav/
- vendor: other
- user: rclone
- pass: *** ENCRYPTED ***
Keep this "baidu" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
Current remotes:
Name Type
==== ====
baidu webdav
e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
挂载到本机#
以挂载到/mnt/baidu为例
rclone mount baidu:/ /mnt/baidu \
--vfs-cache-mode writes \
--header "Referer:https://pan.baidu.com/" \
--header "User-Agent:pan.baidu.com"