转换电子书格式(azw3、epub、mobi)
使用python3编写的电子书格式转换工具, 将未加解密的azw3格式无损转换epub,mobi 支持MacOS、Windows、Linux平台。
在release页面下载对应您操作系统的包
./convert-ebook.exe 文件或目录
在终端中输入
chmod +x ./convert-ebook-macos
./convert-ebook-macos '文件或目录'
同样在终端中输入
chmod +x ./convert-ebook-macos
./convert-ebook-linux '文件或目录'
# 第一次需要安装依赖
pip install -r requirements.txt
# 运行转换
python ./convert-ebook.py "/doc/ebook/"
请使用python3运行脚本,未做python2的支持
执行脚本后,会扫描该文件或该目录下所有的azw3文件(包括子目录),并执行转换。转换后的文件会写入到azw3所在的目录。如果写入时已经存在同名文件,旧文件会被覆盖掉。 默认同时处理cpu核心数*2个转换任务
positional arguments: source specify file or dir optional arguments: -h, --help show this help message and exit -t THREAD_COUNT, --thread_count THREAD_COUNT specify threadCount,default is cpu_count*2 -E EPUB_VERSION, --epub_version EPUB_VERSION specify EPUB version to unpack to: 2, 3 or A (for automatic) or F for Force to EPUB2, default is 2