系统相关
首页 > 系统相关> > linux 下通过命令行操作百度网盘

linux 下通过命令行操作百度网盘

作者:互联网

一. 环境:

centos7

 

二. 安装工具 bypy

sudo pip install bypy

 

三.使用 bypy

3.1 授权

[root@ineedle ~]# 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    
用浏览器访问红色的链接获取授权码,然后粘贴再回车就授权成功.

 

3.2 上传文件

bypy upload  文件名(不加 xxx 时,则上传当前目录)

 

3.3 下载文件

bypy downfile 文件名

bypy downdir

 

标签:authorize,百度网,文件名,命令行,linux,授权,bypy,上传
来源: https://www.cnblogs.com/dhqy/p/15945043.html