#!/usr/bin/env python
#encoding=utf-8
import urllib2
url="http://www.qingfanqie.com/Book/BookClass.aspx?classId=79"
#opener.addheaders = [('User-agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1'),('Referer','http://detail.tmall.com/item.htm?id=2 695977920&')]
proxy = urllib2.ProxyHandler({'http': 'http://admin:[email protected]:80'})
auth = urllib2.HTTPBasicAuthHandler()
opener = urllib2.build_opener(proxy, auth, urllib2.HTTPHandler)
urllib2.install_opener(opener)
print urllib2.urlopen(url).read()