bypy
https://github.com/houtianze/bypy
TL;DR: pip install bypy
. Run bypy
安装配置完毕后可用命令行直接上传文件
@echo off
bypy -v upload E:\图片\Aatrox_Splash_0.jpg test/2.jpg
pause
可能出现的问题
- 第一次运行要授权,打开命令行中的提示网站,复制授权码到命令行中
可能会由于百度权限问题,使用百度云备份需要差不多一个月跟新一次授权,否则报错
OpenShift server failed, authorizing/refreshing with the Heroku server …
或者不小心删除了
Hash Cache File '/home/pipi/.bypy/bypy.hashcache.json' not found, no caching
Note: Skip saving Hash Cache since it has not been updated.
这个应该不是错误,而是没有再次更新授权的提示吧。
更新(重新)授权办法如下:
运行
bypy.py -c
删除令牌文件,然后重新授权一次。如果还不行,去百度应用授权里删除bypy再重新授权。