linux服务器上传文件到百度云

一、安装bypy

pip install bypy --user

二、配置bypy

输入命令
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
3eae4eexxxx4f3cde500cfa(从浏览器获取的授权码复制到这里)
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: 1.005TB
Used: 882.675MB

三、使用bypy

bypy list                 # 显示文档
bypy -c                   # 取消令牌文件。一段时间后要重新授权
bypy upload filename -v   # 上传某文件,显示进度
bypy downdir filename     # 下载
bypy compare              # 比较本地目录和网盘目录

例如:

bypy upload incubator-mxnet.tar.gz -v

在这里插入图片描述

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值