Centos7使用Python使用百度云

环境: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>

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值