Using an HTTP proxy with Universal Feed Parser
import urllib2, feedparser proxy = urllib2.ProxyHandler( {"http":"http://your.proxy.here:8080/"} ) d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml', handlers = [proxy])
DZone Snippets > peter > feeds
12122 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Peter Cooperx http://www.petercooper.co.uk/
import urllib2, feedparser proxy = urllib2.ProxyHandler( {"http":"http://your.proxy.here:8080/"} ) d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml', handlers = [proxy])
xml.pubDate(p.updated_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
strftime("%a, %d %b %Y %H:%M:%S %z")
https://USERNAME:PASSWORD@gmail.google.com/gmail/feed/atom