一. 系统环境:

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

 

 

参考:bypy-命令行下使用百度网盘 - 知乎 (zhihu.com)

  

 

posted on 2022-02-28 12:08  青叶煮酒  阅读(2352)  评论(0编辑  收藏  举报