プログラミング + アカデミック + 何か面白いこと

  1. Programming
  2. 513 view

[Python]Install python urllib 2

I wrote code of a programming book.
urllib2 is needed for the code, but I couldn’t find urllib2 at pip.
So I tried to install urllib3.

$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

There are some diifferences.
But, we can use same way because differences are little bit.

Programming recent post

  1. Install sbt 1.0.0 and run sample template

  2. [Machine Learning]Created docker image includ…

  3. [Node.js]How to write batch script with Node.…

  4. [Play][Scala]Develop Request Driven Batch Usi…

  5. [OpenCV][Ruby]Auto check web page design corr…

関連記事

PAGE TOP