behold the power of requests

This commit is contained in:
2016-02-03 06:11:36 -05:00
parent 20290e3f2c
commit 7461371361
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -14,6 +14,8 @@ consumption.
including: security vulnerabilities, verbose code, reinventing the wheel,
constantly reading documentation, depression, headaches, or even death.
Behold, the power of Requests:
.. code-block:: python
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
+1 -1
View File
@@ -15,7 +15,7 @@ consumption.
including: security vulnerabilities, verbose code, reinventing the wheel,
constantly reading documentation, depression, headaches, or even death.
::
Behold, the power of Requests::
>>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
>>> r.status_code