摘要: #coding=utf8 import bs4 import re from bs4 import BeautifulSoup html_doc = """ The Dormouse's story The Dormouse's story Once upon a time there were three little sisters; and their names were Els... 阅读全文
posted @ 2016-11-04 02:14 brady-wang 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #coding:utf8 __author__ = 'wang' import urllib2 import cookielib url = "http://www.baidu.com"; response = urllib2.urlopen(url) print(len(response.read())); request = urllib2.Request(url) request.... 阅读全文
posted @ 2016-11-04 01:45 brady-wang 阅读(179) 评论(0) 推荐(0) 编辑