摘要: #Author:Mini#!/usr/bin/env pythonimport urllib.requesturl1="http://blog.sina.com.cn/s/blog_470071c90102x8jc.html"headers=("User-Agent","Mozilla/5.0 (W 阅读全文
posted @ 2017-10-02 17:14 兔子的尾巴_Mini 阅读(137) 评论(0) 推荐(0)
摘要: 301 moved permanently 302 found 303 not modified 400 bad request 401 unauthorized 403 forbidden 404 not found 500 internal server error 501 not implem 阅读全文
posted @ 2017-10-02 16:46 兔子的尾巴_Mini 阅读(133) 评论(0) 推荐(0)
摘要: http request:**************************************************************get:****.com/sss?aa=bb&cc=dd ("aa"=key;"bb"=value) #Author:Mini#!/usr/bin/e 阅读全文
posted @ 2017-10-02 16:22 兔子的尾巴_Mini 阅读(204) 评论(0) 推荐(0)
摘要: urllib.request.rechieve("www",filename="") urllib.request.cleanup() a=urllib.request.urlopen() a.info() a.getcode() a.geturl() *********************** 阅读全文
posted @ 2017-10-02 13:10 兔子的尾巴_Mini 阅读(239) 评论(0) 推荐(0)