urllib库python2和python3具体区别

来源:互联网 发布:淘宝联盟自己怎么使用 编辑:程序博客网 时间:2024/06/05 19:06
 

urllib库python2和python3具体区别



Python 2 name
Python 3 nameurllib.urlretrieve()urllib.request.urlretrieve()urllib.urlcleanup()urllib.request.urlcleanup()urllib.quote()urllib.parse.quote() urllib.quote_plus()urllib.parse.quote_plus()urllib.unquote()urllib.parse.unquote()urllib.unquote_plus()urllib.parse.unquote_plus()urllib.urlencode()urllib.parse.urlencode()urllib.pathname2url()urllib.request.pathname2url()urllib.url2pathname()urllib.request.url2pathname()urllib.getproxies()urllib.request.getproxies()urllib.URLopenerurllib.request.URLopener urllib.FancyURLopenerurllib.request.FancyURLopenerurllib.ContentTooShortErrorurllib.error.ContentTooShortErrorurllib2.urlopen()urllib.request.urlopen()urllib2.install_opener()urllib.request.install_opener()urllib2.build_opener()urllib.request.build_opener()urllib2.URLErrorurllib.error.URLErrorurllib2.HTTPErrorurllib.error.HTTPErrorurllib2.Requesturllib.request.Requesturllib2.OpenerDirectorurllib.request.OpenerDirectorurllib2.BaseHandlerurllib.request.BaseHandlerurllib2.HTTPDefaultErrorHandlerurllib.request.HTTPDefaultErrorHandlerurllib2.HTTPRedirectHandlerurllib.request.HTTPRedirectHandlerurllib2.HTTPCookieProcessorurllib.request.HTTPCookieProcessorurllib2.ProxyHandlerurllib.request.ProxyHandlerurllib2.HTTPPasswordMgrurllib.request.HTTPPasswordMgrurllib2.HTTPPasswordMgrWithDefaultRealmurllib.request.HTTPPasswordMgrWithDefaultRealmurllib2.AbstractBasicAuthHandlerurllib.request.AbstractBasicAuthHandlerurllib2.HTTPBasicAuthHandlerurllib.request.HTTPBasicAuthHandlerurllib2.ProxyBasicAuthHandlerurllib.request.ProxyBasicAuthHandlerurllib2.AbstractDigestAuthHandlerurllib.request.AbstractDigestAuthHandlerurllib2.HTTPDigestAuthHandlerurllib.request.HTTPDigestAuthHandlerurllib2.ProxyDigestAuthHandlerurllib.request.ProxyDigestAuthHandlerurllib2.HTTPHandlerurllib.request.HTTPHandlerurllib2.HTTPSHandlerurllib.request.HTTPSHandlerurllib2.FileHandlerurllib.request.FileHandlerurllib2.FTPHandlerurllib.request.FTPHandlerurllib2.CacheFTPHandlerurllib.request.CacheFTPHandler urllib2.UnknownHandlerurllib.request.UnknownHandler