前几天和小伙伴有聊到图床迁移,恰好遇到 BBing 童靴编写的图床转换工具,推荐给需要做图床迁移的小伙伴!
使用方法
命令格式:
python3 ./picvt.py -D ../blog/content/posts/ -F imgtu -T github -t **** --repo resources --branch main --path images
更多参数请参考 python3 ./picvt.py -h
:
usage: picvt.py [-h] [-u USER] [-p PASSWORD] [-t TOKEN]
[-f FORMAT [FORMAT ...]] [-r RETRY] [--repo REPO]
[--branch BRANCH] [--path PATH] -D DIR -F {imgtu,github} -T
{imgtu,github}
optional arguments:
-h, --help show this help message and exit
-u USER, --user USER target user
-p PASSWORD, --password PASSWORD
target password
-t TOKEN, --token TOKEN
target token
-f FORMAT [FORMAT ...], --format FORMAT [FORMAT ...]
file format
-r RETRY, --retry RETRY
retry times
--repo REPO repo name
--branch BRANCH branch name
--path PATH content path
-D DIR, --dir DIR target dir
-F {imgtu,github}, --from {imgtu,github}
from
-T {imgtu,github}, --to {imgtu,github}
to
条评论