python爬虫的网络请求库
-urllib
-request
-urlopen()
-urlretrieve(fullurl,filename)
-Request(url, data=None, headers)
-build_opener(*handlers)
-HTTPHandler
-HTTPCookieProcessor(http.cookiejar.CookieJar())
-ProxyHandler(proxies={})
-parse
-quote()
-urlencode()
-http.client.HTTPResponse
-code
-getheaders()
-getheader(name, default)
read() 读取的响应字节数据
-requests (第三方模块)
-request(method, url, params, data, json, files, headers, cookies, proxies, auth)
-get(url, params, **kwargs)
-post(url, data, json, **kwargs)
-put(url, data, json, **kwargs)
-delete(url, data, json, **kwargs)
-Response
-status_code
-encoding
-headers
-content 字节数据
-text 文本数据
-json() json文本反序列化为Python的dict/list的对象
