摘要:
1、最简洁方法response:直接请求response.getcode():获取状态码response.read():读取内容 #coding:utf8import urllib2url = "http://www.baidu.com"print '第一种方法're... 阅读全文
摘要:
1、最简洁方法response:直接请求response.getcode():获取状态码response.read():读取内容 #coding:utf8import urllib2url = "http://www.baidu.com"print '第一种方法're... 阅读全文
摘要:
#coding:utf8from bs4 import BeautifulSouphtml__doc = """The Dormouse's storyThe Dormouse's storyOnce upon a time there were three litt... 阅读全文
摘要:
#coding:utf8from bs4 import BeautifulSouphtml__doc = """The Dormouse's storyThe Dormouse's storyOnce upon a time there were three litt... 阅读全文