Linux 下载百度网盘文件

2021-07-30  本文已影响0人  南浦书生

Linux 下载百度网盘文件

1. 准备环境: centos7.2 python2.7+ pip

2. 安装工具

pip install requests -i https://pypi.doubanio.com/simple
pip install bypy -i https://pypi.doubanio.com/simple

3. 授权

[root@iZ8vbdz4rng8x76417crnnZ setuptools-1.4.2]# bypy info
Please visit:
https://openapi.baidu.com/oauth/2.0/authorize?scope=basic+netdisk&redirect_uri=oob&response_type=code&client_id=q8WE4EpCsau1oS0MplgMKNBn
And authorize this app
Paste the Authorization Code here within 10 minutes.
Press [Enter] when you are done
[root@iZ8vbdz4rng8x76417crnnZ setuptools-1.4.2]# byby info
-bash: byby: command not found
[root@iZ8vbdz4rng8x76417crnnZ setuptools-1.4.2]# bypy info
Please visit:
https://openapi.baidu.com/oauth/2.0/authorize?scope=basic+netdisk&redirect_uri=oob&response_type=code&client_id=q8WE4EpCsau1oS0MplgMKNBn
And authorize this app
Paste the Authorization Code here within 10 minutes.
Press [Enter] when you are done
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Authorizing, please be patient, it may take upto 300 seconds...
Authorizing with the Heroku server ...
Successfully authorized

Quota: 2.008TB
Used: 885.847GB

下载文件

[root@iZ8vbdz4rng8x76417crnnZ setuptools-1.4.2]# bypy info
Quota: 2.005TB
Used: 1.123TB
[root@iZ8vbdz4rng8x76417crnnZ setuptools-1.4.2]# bypy list
/apps/bypy ($t $f $s $m $d):
D testfiles 0 2021-07-30, 15:40:12
上一篇 下一篇

猜你喜欢

热点阅读