将 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 details)
Built Distribution
html2epub-1.2-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file html2epub-1.2.tar.gz
.
File metadata
- Download URL: html2epub-1.2.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2bdc351a2f48d291c5b5d57ab30589c38378511826c4e35445b599bfa3db3258
|
|
MD5 |
ef19a5c6305b9653792d67831e571689
|
|
BLAKE2b-256 |
654c93204dea63b701f1214cc9a296ddf30ce402accc9f60b4c62cff67d0c584
|
File details
Details for the file html2epub-1.2-py3-none-any.whl
.
File metadata
- Download URL: html2epub-1.2-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7827030ced5b259136d2aa0a24d461f70f66653543a3c610103086e70fc29978
|
|
MD5 |
03b79e56e89fd2af27e0d5ae1aa8b2af
|
|
BLAKE2b-256 |
04a0cec7ed49e51a46d6e3f0fff848fac772ffe276eb8565b9c8d5dac79079cf
|