Skip to main content

Posts

Showing posts with the label Plarium

Sending request using request library

Using request library for Pirates  Few years ago using urllib2 was a simplest way for sending and receiving  HTTP Request. But now I'm using  Request library . This  is more simple and powerful. Unfortunately Request is not include in default install and Pip  should be used .  Installation  Procedure is really simple  and near to standard : MacBook-Pro-Hohlov:pirates skhohlov $ virtualenv ./env New python executable in ./env/bin/python2.7 Also creating executable in ./env/bin/python Installing setuptools, pip, wheel...done. MacBook-Pro-Hohlov:pirates skhohlov $ source ./env/bin/activate ( env ) MacBook-Pro-Hohlov:pirates skhohlov $ ( env ) MacBook-Pro-Hohlov:pirates skhohlov $ ( env ) MacBook-Pro-Hohlov:pirates skhohlov $ pip install requests Collecting requests Using cached requests-2.13.0-py2.py3-none-any.whl Installing collected packages: requests Successfully installed requests-2.13.0 You are using pip version 7.1.2, however ...