All Projects → jianyun8023 → convert-ebook

jianyun8023 / convert-ebook

Licence: other
转换电子书格式(azw3、epub、mobi)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to convert-ebook

EbookReader
The EbookReader Android App. Support file format like epub, pdf, txt, html, mobi, azw, azw3, html, doc, docx,cbz, cbr. Support tts.
Stars: ✭ 37 (-61.86%)
Mutual labels:  ebook, azw3
laravel-tips-and-tricks-ebook
Free Laravel Tips eBook
Stars: ✭ 145 (+49.48%)
Mutual labels:  ebook
Gitconverter
Синхронизация хранилища конфигурации "1С:Предприятия" с репозиторием Git и последующим переходом на разработку в 1C:Enterprise Development Tools (1C:EDT) с сохранением истории
Stars: ✭ 149 (+53.61%)
Mutual labels:  convert
Flacon
Audio File Encoder. Extracts audio tracks from an audio CD image to separate tracks.
Stars: ✭ 252 (+159.79%)
Mutual labels:  convert
Xresloader
跨平台Excel导表工具(Excel=>protobuf/msgpack/lua/javascript/json/xml)
Stars: ✭ 161 (+65.98%)
Mutual labels:  convert
onesync-reader-app
Cross-platform ebook reader built using Xamarin.Forms
Stars: ✭ 33 (-65.98%)
Mutual labels:  ebook
Silk V3 Decoder
kn007's blog
Stars: ✭ 1,832 (+1788.66%)
Mutual labels:  convert
undatum
undatum: a command-line tool for data processing. Brings CSV simplicity to JSON lines and BSON
Stars: ✭ 39 (-59.79%)
Mutual labels:  convert
unpaprd
An audiobook 🎧 📔 app made using Flutter
Stars: ✭ 73 (-24.74%)
Mutual labels:  ebook
C4go
Transpiling C code to Go code
Stars: ✭ 253 (+160.82%)
Mutual labels:  convert
X2struct
Convert between json string and c++ object. json字符串和c++结构体之间互相转换
Stars: ✭ 251 (+158.76%)
Mutual labels:  convert
Fonteditor Core
fonteditor core functions
Stars: ✭ 207 (+113.4%)
Mutual labels:  convert
ebook-with-asciidoctor
Free and Open Source code to automate your ebook! Get your .pdf, .epub, and .mobi in seconds running a single command! Clone this project and start your eBook today!
Stars: ✭ 42 (-56.7%)
Mutual labels:  ebook
Gelatin
Transform text files to XML, JSON, or YAML
Stars: ✭ 150 (+54.64%)
Mutual labels:  convert
ttml2srt
convert TTML subtitles to SRT subtitles
Stars: ✭ 46 (-52.58%)
Mutual labels:  convert
Magick.net
The .NET library for ImageMagick
Stars: ✭ 2,071 (+2035.05%)
Mutual labels:  convert
Markdown Pdf
Convert markdown to pdf, png or jpeg on the fly in Atom
Stars: ✭ 250 (+157.73%)
Mutual labels:  convert
hands-on-elixir-and-otp-cryptocurrency-trading-bot-source-code
Resources related to the "Hands-on Elixir & OTP: Cryptocurrency trading bot" book
Stars: ✭ 70 (-27.84%)
Mutual labels:  ebook
node-pdftocairo
📃 Node.js wrapper for pdftocairo - PDF to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo
Stars: ✭ 17 (-82.47%)
Mutual labels:  convert
HEIF
Mac OS X: Convert any image to HEIF/HEIC format
Stars: ✭ 58 (-40.21%)
Mutual labels:  convert

Convert-ebook

Build Status Build Status

使用python3编写的电子书格式转换工具, 将未加解密的azw3格式无损转换epub,mobi 支持MacOS、Windows、Linux平台。


Update: 很久没更新这个工具了,以后应该也不会更新了。

一个更快,更好的工具 eCore,我常用来批量转换书籍。 https://gist.github.com/jianyun8023/a4b8e9568f896a09e495fb5ff12f1d20

使用的开源工具

使用方式

release页面下载对应您操作系统的包

Windows

  • 直接拖动文件或文件夹到convert-ebook.exe文件上即可执行
  • 命令行下使用 ./convert-ebook.exe 文件或目录

macOS

在终端中输入

chmod +x ./convert-ebook-macos
./convert-ebook-macos '文件或目录'

Linux

同样在终端中输入

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

问题

  • 暂不支持epub直接转mobi,kindlegen转epub可能会导致输出的mobi文件中文乱码,暂未找到解决办法 已经找到解决办法,后续增加epub->mobi
  • 暂未支持kindleunpack转换epub配置epub v2、v3、auto等参数已支持

计划支持

  • 支持的转换流程
    • azw3->mobi
    • mobi->epub
    • epub->mobi
  • 通过参数配置输出策略已完成
  • 通过调用calibre-cli进行书库的批量转换,增加
  • calibre插件暂不考虑
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].