pyebook ======== About ----- pyebook extract content and meta informations on ebook files. It relies on the .epub starndards by the idpf_ .. _idpf: http://idpf.org/epub Installation ------------ from pip:: pip install --upgrade pyebook from easy_install:: easy_install -ZU pyebook Requirements ------------ pyebook requires beautifulsoup4_ (>=4.1.3). .. _beautifulsoup4: http://pypi.python.org/pypi/beautifulsoup4 Usage ----- Import:: from pyebook.pyebook import Book Initialize the book object:: my_book = Book('my_ebook_file.epub') Return the book metadata:: my_book.metadata Load the book content:: my_book.load_content() Return the book content:: my_book.content All the returned objects are dictionaries or dictionaries list like:: # metadata { 'date': , 'identifier': , 'creator': , 'language': , 'title': ' } # content (list of dictionaries) [ { 'part_name': , 'source_url': , 'content_source': , 'content_source_text': } ] Links ----- * PyPI_ * GitHub_ .. _PyPI: http://pypi.python.org/pypi/pyebook/ .. _GitHub: https://github.com/diopib/pyebook