目录

BaiduPCS-Go下载百度网盘资源

更新于 2021-01-25

BaiduPCS-Go下载百度网盘资源

百度网盘作为国内资源的主要交流方式,通过限速的方式来保持竞争力本也无可厚非。然而,百度网盘过于封闭,没有官方Linux 命令行工具,也没有API可以调用,对于命令行用户极不友好。

相应的,github上的大神 iikira 利用GO语言开发了BaiduPCS-Go,可以通过命令行的方式对百度网盘上的资源进行上传下载,十分方便。

然而,好景不长,百度官方已经封禁了这个工具,原作者也删除了项目。这篇文章仅仅是留念,同时我fork了原项目在jtxiaocom/BaiduPCS-Go: Re-upload of iikira/BaiduPCS-Go (github.com)

命令实例

BaiduPCS-Go login -bduss=kVCRU03eWRLUlZlUzdjVUd2a1lmWDQwMlN2Q0VNcE03eFVwZ2RwazlxZVNIcEZlRVFBQUFBJCQAAAAAAAAAAAEAAADNKoLPMzE2NzI1NTA0bQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJKRaV6SkWlee

./BaiduPCS-Go login -bduss=0FlUlJma1l6WG1JQ29HcDA2VFRYcm9yRWlra1lsWWNCb0l3QnJyZUJzTFA3cFplRUFBQUFBJCQAAAAAAAAAAAEAAADNKoLPMzE2NzI1NTA0bQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9hb17PYW9eQ



nohup BaiduPCS-Go d /w/e_backup &
nohup BaiduPCS-Go d /-w/i  -locate &
nohup BaiduPCS-Go d /2AA --locate &
BaiduPCS-Go d /w
BaiduPCS-Go d /2AA -share
tail -fn 50 nohup.out

配置实例

BaiduPCS-Go config set --enable_https
BaiduPCS-Go config set --cache_size 2000000
BaiduPCS-Go config set --savedir /root/down
BaiduPCS-Go config set --max_download_load 500
BaiduPCS-Go config set --max_parallel 500
BaiduPCS-Go config set -user_agent=""

BaiduPCS-Go config set --user_agent="netdisk;P2SP;2.0.12.59;netdisk;9.0.0;red;iPhone-iPhone;12_1_2"
BaiduPCS-Go config set --pan_ua=""
BaiduPCS-Go config set -appid 266719


./BaiduPCS-Go config set --enable_https
./BaiduPCS-Go config set --cache_size 100000
./BaiduPCS-Go config set --savedir /root/down
./BaiduPCS-Go config set --max_download_load 500
./BaiduPCS-Go config set --max_parallel 500


/usr/local/bin/BaiduPCS-Go config set --enable_https
/usr/local/bin/BaiduPCS-Go config set --cache_size 2000000
/usr/local/bin/BaiduPCS-Go config set --savedir /root/pcs/down
/usr/local/bin/BaiduPCS-Go config set --max_download_load 500
/usr/local/bin/BaiduPCS-Go config set --max_parallel 500

/usr/local/bin/BaiduPCS-Go login -bduss=kxpd3hTVHdsaUNhc0w2MGhuSFUxWWNZeTR3dlluNVpjWU0wbWcyQUowSUhhVk5lRVFBQUFBJCQAAAAAAAAAAAEAAAD-SlP4d2hhY2tlcmFscGhhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfcK14H3CteT