Delicious API and urllib2

Max Erickson maxerickson at gmail.com
Tue Apr 7 12:37:10 EDT 2009


Bill <bsagert at gmail.com> wrote:

> The delicious api requires http authorization (actually https). A
> generic delicious api post url is "https://
> username:password at api.api.del.icio.us/v1/posts/add?url=http://
> example.com/&description=interesting&tags=whatever".
> 

The simplest way is probably to manually add the authentication 
header, as shown here:

http://code.activestate.com/recipes/267197/#c2

This article discusses the above strategy, and a strategy using 
HTTPBasicAuthHandler with a password manager default realm (I think 
getting the realm correct is what has stymied me in my attempts to use 
handlers, rather than injecting the header):

http://www.voidspace.org.uk/python/articles/authentication.shtml 


Max




More information about the Python-list mailing list