python-requests Getting started with python-requests Installation or Setup


python-requests is available on PyPI, the Python Package Index, which means it can be installed through pip:

pip install requests

Up-to-date source code can be found on the requests GitHub repository

If you wish to install it from source, you can do this by either cloning the GitHub repository:

git clone git://

Or by getting the tarball (-O writes the output to file; -L follows redirects):

curl -OL

Then you can install it by executing the

python install

However you installed it, you can start using it by importing the usual way

>>> import requests
>>> requests.get('')