I love my Sony Reader but this Christmas I was given a Kindle and I absolutely love it – the ability to transfer books without a cable alone is a huge improvement, let alone the 3G, browser, dictionary, book store etc. One thing that amazed me is the cost of having news automatically delivered to the device. Knowing that calibre (the ebook software I used for managing my Sony Reader) supports automatic downloading of news websites/feeds and converting to ebook formats, I thought I’d see if I could make use of this for the Kindle. Turns out that calibre has command line tools for most of its functionality and so a quick cron job later to run the following script and I have BBC and Guardian news delivered to my Kindle for free every day:
ebook-convert /opt/calibre/resources/recipes/bbc.recipe bbc.mobi
calibre-smtp --attachment bbc.mobi --relay smtp.gmail.com --port 587 --username mygmailusername --password "my gmail password" --encryption-method TLS email@example.com firstname.lastname@example.org ""
ebook-convert /opt/calibre/resources/recipes/guardian.recipe guardian.mobi
calibre-smtp --attachment guardian.mobi --relay smtp.gmail.com --port 587 --username mygmailusername --password "my gmail password" --encryption-method TLS email@example.com firstname.lastname@example.org ""
The different news feeds supported by calibre can be found by clicking on the ‘Find news’ button on the toolbar and the Python scripts used to do this are in
/usr/share/calibre/recipes/ – thanks Andy). You might want to modify the chosen recipes to limit the amount of data it downloads as it can take a while (e.g. filter certain newspaper sections).