Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JKirchartz/libepub
A Python Library to work with epub format
https://github.com/JKirchartz/libepub
Last synced: 3 days ago
JSON representation
A Python Library to work with epub format
- Host: GitHub
- URL: https://github.com/JKirchartz/libepub
- Owner: JKirchartz
- Created: 2010-12-31T15:44:39.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-31T16:10:11.000Z (almost 14 years ago)
- Last Synced: 2024-08-02T05:13:00.946Z (3 months ago)
- Language: Python
- Homepage:
- Size: 629 KB
- Stars: 2
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. libepub
libepub is a simple Python utility to work with epub files.
h2. Dependencies
* lxml
h2. Basic Examples
from libepub.epub import Bookpath = 'sample.epub' # or any valid path to an .epub file
book = Book(path)# Info about author, title, language, publisher, etc.
print "Metadata: ", book.metadata# Chapters of the book
print "Chapters: ", book.chapters# Content of chapter 1
first_chapter = book.chapters[1]
print first_chapter.content