Tool for web scraping and syncing safari downloads library.
A well documented example of screen scraping with lxml. This example logins in to the safari book service, then synchronizes the files to the local system.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.