python 获取网页header
因之前想写python爬虫判断douban的页面重定向,故写了以下代码,获取网页头部信息, 返回响应码conn = httplib.HTTPConnection(host)conn.request("GET",path)return conn.getresponse().statusHTTPConnection.request(method, url[, body[, headers]
原创
2011-12-08 11:25:52 ·
3057 阅读 ·
0 评论