随笔分类 -  爬虫

摘要:import urllib.request response = urllib.request.urlopen("http://www.python.org") print(response.status) #获取响应码 print(response.getheaders()) #获取响应头信息 print(response.getheader("Server")) #获取响应头中Server... 阅读全文
posted @ 2018-11-21 22:00 何处惹_尘埃 阅读(161) 评论(0) 推荐(0)