I really didn't know what to do so I build something based on my previous project. This script grabs new ebooks from the
it-ebooks.info's RSS feed and downloads them. If you don't know this site you should check it out, there are lots of good ebooks to download.
Attached to this post is the whole project as this contains some files which the script makes use of.
As always, free code - use it or loose it.
[gist]Daxda/bd2fc7b12152fe615b14[/gist]