urllib2 is needed for the code, but I couldn’t find urllib2 at pip.
So I tried to install urllib3.
There are some diifferences.$sudo apt-get install python-pip $sudo pip install urllib3 $python >>> import urllib3 >>> http = urllib3.PoolManager() >>> print http.request('GET', 'http://www.google.com').data
But, we can use same way because differences are little bit.