In Python's network module, the most frequently used is urllib, because it contains the way to open the URL to send the request, but Python urllib function, along with the development of the Internet, also in the iterative progress, so there are urllib,urllib2 and URLLIB3, what's the difference between them, the following one by one illustrates:
1.) The first built-in network request module in Python is Urllib, and we can look at all the methods in Urllib:
2.) All methods in the URLLIB2 module are more focused on services for HTTP requests:
3.) The URLLIB3 module is not built into Python and requires additional installation and can be quickly downloaded and installed via pip install URLLIB3:
Combining all the features of the three seen above, it is not difficult to find that urllib focuses on URL basic request construction, URLLIB2 focuses on the processing of HTTP protocol requests, while URLLIB3 is serving the upgraded HTTP 1.1 standard with efficient HTTP connection pool management and HTTP The function library for proxy services, from Urllib to Urllib2 and URLLIB3, is a wave of upgrades from the Universal Network Connection service to the head application of the Internet network: support for long-connected HTTP access, and the continuous facilitation of network access.
For more information on Python language, go to 51Testing Software Test Network (http://www.51testing.com).
The difference between URLLIB,URLLIB2 and URLLIB3