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 named urllib.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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -