摘要:
1、最简洁方法response:直接请求response.getcode():获取状态码response.read():读取内容 #coding:utf8import urllib2url = "http://www.baidu.com"print '第一种方法're... 阅读全文
posted @ 2018-11-05 16:46
strawqqhat
阅读(137)
评论(0)
推荐(0)
摘要:
1、最简洁方法response:直接请求response.getcode():获取状态码response.read():读取内容 #coding:utf8import urllib2url = "http://www.baidu.com"print '第一种方法're... 阅读全文
posted @ 2018-11-05 16:46
strawqqhat
阅读(112)
评论(0)
推荐(0)
摘要:
#coding:utf8from bs4 import BeautifulSouphtml__doc = """The Dormouse's storyThe Dormouse's storyOnce upon a time there were three litt... 阅读全文
posted @ 2018-11-05 16:29
strawqqhat
阅读(106)
评论(0)
推荐(0)
摘要:
#coding:utf8from bs4 import BeautifulSouphtml__doc = """The Dormouse's storyThe Dormouse's storyOnce upon a time there were three litt... 阅读全文
posted @ 2018-11-05 16:29
strawqqhat
阅读(171)
评论(0)
推荐(0)

浙公网安备 33010602011771号