环境:Py3.6
安装:pip3 install bypy
bypy -V
百度云授权:bypy info
[root@localhost ~]# bypy info
Please visit:
https://openapi.baidu.com/oauth/2.0/authorize?client_id=q8WCsau1oS0MplgMKNBn&response_type=code&redirect_uri=oob&scope=basic+netdisk
And authorize this app
Paste the Authorization Code here within 10 minutes.
Press [Enter] when you are done
0412b1e78fcdb8837dde3v7b8dddc3b6d
Authorizing, please be patient, it may take upto 300 seconds...
Authorizing/refreshing with the OpenShift server ...
OpenShift server failed, authorizing/refreshing with the Heroku server ...
Successfully authorized
Quota: 2.009TB
Used: 1.975TB
[root@localhost ~]# bypy list
/apps/bypy ($t $f $s $m $d):
授权成功后:会在我的应用数据->bypy以后的文件操作都会在这里进行
列出文件列表:
[root@localhost ~]# bypy list
/apps/bypy ($t $f $s $m $d):
F Python-3.6.3.tgz 22673115 2019-01-18, 15:16:17 e9180c69ed9a878a4a8a3ab221e32fa9
F Python3-install.sh 444 2019-01-18, 15:14:43 206d2765404db278ec0dff24d146677d
文件上传:
bypy upload <file>