百度云/百度网盘Python客户端github项目
系统环境:
linux与ma + python3.6
安装依赖包
pip install requests
pip install bypy==1.6.10
授权登陆:
执行 bypy info,显示下边信息,根据提示,通过浏览器访问下边灰色的https链接,如果此时百度网盘账号正在登陆,会出现长串授权码,复制。
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 # 提示在下边粘贴授权码
在下边图示红色位置粘贴授权码,耐心等待一会即可(1-2分钟)
Authorizing, please be patient, it may take upto 300 seconds...
Authorizing with the Heroku server ...
Heroku server failed, authorizing with the Heroku1 server ...
Successfully authorized
Quota: 6.112TB

本文介绍了如何在Linux环境下,利用Python的bypy库进行百度网盘的授权登录、文件同步和目录管理。通过安装依赖、授权过程、同步文件到云端以及从云端同步文件到本地的操作步骤,帮助用户实现便捷的云盘同步。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



