From daa2b297a35518e2b4b649919e49d65f1f7ca463 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Tue, 16 Jun 2020 13:54:43 -0700 Subject: [PATCH] updating usage information --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3dfc95a2c6..f3b1eebf66 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ by Kenneth Reitz & is protected by The <

 

-```pycon +```python >>> import requests >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) >>> r.status_code @@ -52,7 +52,7 @@ by Kenneth Reitz & is protected by The < Requests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your `PUT` & `POST` data — but nowadays, just use the `json` method! -Requests is **the most downloaded Python package today**, pulling in around `14M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `500,000+` repositories. You may certainly put your trust in this code. +Requests is one of the most downloaded Python package today, pulling in around `14M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `500,000+` repositories. You may certainly put your trust in this code.