python - Using urllib2 for Python3 -
i wanted use urllib2
python 3, don't think it's available in such name.
i use urllib.request
, there way use urllib2?
urllib2
in python 3 has been split several modules:
the
urllib2
module has been split across several modules in python 3 namedurllib.request
,urllib.error
.2to3
tool automatically adapt imports when converting sources python 3.
urllib.request
want use issuing http requests.
alternatively, open source requests library provides simpler , cleaner api making http requests in both python 2 , 3.
Comments
Post a Comment