ubuntu 百度云上传文件

sudo pip install requests
sudo pip install bypy
保持百度云的登录状态
bypy.py info
进入显示的授权码链接:https://openapi.baidu.com/oauth/2.0/authorize?scope=basic+netdisk&redirect_uri=oob&response_type=code&client_id=q8WE4EpCsau1oS0MplgMKNBn
复制授权码
粘贴到Press [Enter] when you are done 后面
稍等后完成授权.

bypy list #显示文档
bypy upload filename #上传文档
bypy -c #取消令牌文件。一段时间后要重新授权
bypy downdir filename #下载文件(存在问题)
bypy.py compare #比较本地当前目录和云盘(程序的)根目录

猜你喜欢

转载自blog.csdn.net/hhg337372083/article/details/82889988