How to auto log into gmail atom feed with Python?
Gmail has this sweet thing going on to get an atom feed: def gmail_url(user, pwd): return "https://"+str(user)+":"+str(pwd)+"@gmail.google.com/gmail/feed/atom" Now when you do this in a browser, it authenticates and forwards you. But in Python, at least what I'm trying, isn't working right. url = gmail_url(settings.USER, settings.PASS) print url opener = urllib.FancyURLopener() f = opener.open(url) print f.read() Instead of forwarding correctly, it's doing this: >>> https://user:pass@gmail.google.com/gmail/feed/atom Enter username for New mail feed at mail.google.com: This is BAD! I shouldn't