将 html链接, html文件 或 html文本 转换成 epub文件.
Project description
html2epub
简介
原项目为python2项目 pypub , 此为python3项目, 并进行了些许修改.
将 html链接, html文件 或 html文本 转换成 epub文件.
tips
关于epub文件的格式可以参考 EPUB - Wikipedia.
快速使用
>>> import html2epub
>>> epub = html2epub.Epub('My First Epub')
>>> chapter = html2epub.create_chapter_from_url('https://en.wikipedia.org/wiki/EPUB')
>>> epub.add_chapter(chapter)
>>> epub.create_epub('OUTPUT_DIRECTORY')
参考文献
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
html2epub-1.2.tar.gz
(11.8 kB
view hashes)
Built Distribution
html2epub-1.2-py3-none-any.whl
(14.7 kB
view hashes)