Using an HTTP proxy with Universal Feed Parser
1 import urllib2, feedparser 2 3 proxy = urllib2.ProxyHandler( {"http":"http://your.proxy.here:8080/"} ) 4 d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml', handlers = [proxy])
DZone Snippets > peter > feedparser
12738 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/
1 import urllib2, feedparser 2 3 proxy = urllib2.ProxyHandler( {"http":"http://your.proxy.here:8080/"} ) 4 d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml', handlers = [proxy])