照上面的文档 http://pythonhosted.org/pyquery/scrap.html
url='http://localhost:8080/'
d = pyq(url, headers={'User-Agent': 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20140129 Firefox/24.0'})
但是服务器日志显示还是User-Agent: Python-urllib/3.2
url='http://localhost:8080/'
d = pyq(url, headers={'User-Agent': 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20140129 Firefox/24.0'})
但是服务器日志显示还是User-Agent: Python-urllib/3.2