一. 系統環境:
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)