/xkcd-to-kindle

A Python script that downloads XKCD comics and converts them to a .mobi e-book

Primary LanguagePython

#XKCD to Kindle#

A Python script that downloads XKCD comics and converts them to a .mobi e-book using Kindlegen.exe. Requires the BeautifulSoup module (pip install beautifulsoup4).

You can specify the first and the last comic to download. First it makes a HTML file of the comics, extracting the comic title, the comic itself, the alt text, and a link, if the comic contains one. A table of contents is also generated.

You can convert the .mobi to .epub if you want to, and you find every downloaded image in /src/img.

Also, here is a generated e-book from ep. 1-1152.