# Amazon Kindle scripts

I bought a Kindle as a Christmas present, and thought I’d put some books on it. Once I got going, it was easy, I put all of [Feedbooks](http://www.feedbooks.com/), which took about half the space on the device (about 2Gb, as of Christmas 2010).

The first category I did semi-automatically, but this was a pain, especially the bit where I had manually to add 242 books to a collection on the Kindle. Fortunately, I found [kcollect](http://code.google.com/p/kcollect/), a Python script for managing collections on the Kindle (caveat: you have to reset the Kindle for your changes to take effect).

Hence the following two quick and dirty scripts:

=$webfile{download-feedbooks,Python script}=
    Downloads all of Feedbooks into category folders. Currently you need to feed it http://www.feedbooks.com/books/categories as input (download it to a file and pass the file as an argument to the script), as, tiresomely, if the program fetches the URL itself it doesn’t get the category list. Fix welcomed.
=$webfile{copy-collection-to-kindle,shell script}=
    Copies books in directories to a Kindle, and categorises them.