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

 

 

參考:bypy-命令行下使用百度網盤 - 知乎 (zhihu.com)

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM