'Retrieves user\'s public tags and their tag counts from Delicious.com.
The tags represent a user\'s full public tagging vocabulary.
DeliciousAPI uses the official JSON feed of the user. We could use
RSS here, but the JSON feed has proven to be faster in practice.
@param username: The Delicious.com username.
@type username: str
@return: Dictionary mapping tags to their tag counts.'

def get_tags_of_user(self, username):

    tags = {}
    path = ('/v2/json/tags/%s' % username)
    data = self._query(path, host='feeds.delicious.com')
    if data:
        try:
            tags = simplejson.loads(data)
        except TypeError:
            pass
    return tags
