The log into the website section of the new york times example in the manual is about as simple as it gets. It's about five lines of code, see the get_browser() function which is all that you need.
Although from your description you want to perform HTTP auth, not cookies based auth. In which case, you should look at the documentation of python-mechanize,as the browser object in calibre is a mechanize browser object.
|