SHARE
TWEET

Untitled

a guest Jul 27th, 2013 74 Never
  1. proxy_support = urllib2.ProxyHandler({"http" : "127.0.0.1:8118"})
  2. opener = urllib2.build_opener(proxy_support)
  3. opener.addheaders = [('User-agent', 'Mozilla/5.0')]
  4. print opener.open(url).read()
RAW Paste Data
Top