title_body: How can I convert an HTML site into an ebook? I'd like to create a .mobi file from a website like the Python Tutorial, to read on my Kindle.
  
  Is it possible to do it on Ubuntu?
upvoted_answer: Of course you can. The easiest method is 
  
  
  save the whole site into a folder (e.g. mirror it with some command line tool like wget - it is available on Windows too - or Httrack)
  zip the folder
  send the zip to your device via Amazon e-mail solution.
  
  
  Here's the official Amazon page documenting this feature.
  
  If it's not what you want, you can use Calibre to convert HTML to various ebook formats, here is the official documentation.
  
  And even more, you can download the official Kindlegen Linux CLI tool from Amazon and hand tailor the downloaded HTML with your favourite editor then convert it.
  
  (And you can download the official Python docs in EPUB format which Amazon happily convert for you (the mailing method), and every other conversion option I had mentioned above will work with the EPUB too.)