Mobify plugin for Chrome
There are a few excellent plugins (e.g. send to kindle) out there that do this kind of thing using an online service and Amazon's conversion service.
Being a little paranoid about privacy and such things myself, I wanted a system that didn't rely on using a 3rd party service and Amazon's conversion service which keeps track of all documents converted.
This program and the conversion service is completely on ones own computer and so is "self contained".
There is a chrome plugin (extension.crx) which you can install into your Chrome browser. A little button will pop up next to your URL bar which you can click on a page to have it rendered into a
.mobi file that you can drop onto your Kindle to read.
There is also a "back end" server which you need to run to actually do the conversions. This is a python app that uses
web.py so you need to install that inside a virtualenv and then start the server (refer Installation section below).
This whole thing is not tinker free and needs some time and tinkering to setup. Please fork the project and send it a pull request if you can improve it in any way. It currently "works for me".
wget. On Debian, you can do this using
sudo apt-get install pandoc lynx calibre wget
apt-get install python
apt-get install python-virtualenv
Create a virtualenv using
Activate this virtualenv and install
web.pyinside it using
. ~/mobify/bin/activateand then
pip install web.py.
mobifyapp and edit the
app.pyfile inside the
appdirectory. In the line that says
def convert_to_mobi(input_file, fname, save_dir = "/home/noufal/Downloads/kindle"), edit the
save_dirparameter to indicate where you want the
.mobifiles to be generated.
Start the web server using
python app.py 9090. You need to run this while the
extension.crxin Chrome to make it install it.
.mobibutton should show up for you to use. Click on it while on some page and you should be able to see debug output on the terminal where the python app is running.
Please report issues to me.
Once you get the setup above working, using the system is just a button click. Your files will get created in the save directory and you can put them onto your kindle when you want.
The backend doesn't do much sanitisation so if you have a version of the page that is formatted for print, please convert that instead of the web version. You will probably get better results.
I plan to optimise the backend for sites that I usually need to get content from so that I get better conversions.
The backend app and the plugin are licensed under the AGPL.