View Single Post
Old 03-20-2020, 03:28 PM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by pittendrigh View Post
One final note. Eventually I'll write a (probably python) utility that recurses the book-like HTML pages and spits out an epub, suitable for downloading to a phone.
You might want to have a look at BeautifulSoup. It's an extremely easy to use universal Python html/xml parser library.
Sigil also comes with an epub helper library that can be used independently of Sigil (epub_utils.py). (It requires unipath.py and compatibility_utils.py).

Of course, the Calibre API also contains countless functions that you could re-use.
Doitsu is offline   Reply With Quote