python web
dayan112
喜欢尝试新鲜事物
喜欢健身、轮滑、阅读
年轻时多充实自己、无论学习还是生活
展开
-
Python web 网页下载器
# -*-coding=UTF-8 -*-import urllib2import cookieliburl = "http://www.baidu.com"print "第一种方法"response1 = urllib2.urlopen(url)print response1.getcode()print len(response1.read())#添加头 内容print "第二种方法"req...原创 2018-03-12 15:18:59 · 689 阅读 · 0 评论 -
python 网页解析器
原创 2018-03-12 15:47:36 · 213 阅读 · 0 评论