diff options
Diffstat (limited to 'docs/user')
| -rw-r--r-- | docs/user/advanced.rst | 12 | ||||
| -rw-r--r-- | docs/user/install.rst | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index b7775f24..2aac434c 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -280,7 +280,7 @@ immediately. You can override this behaviour and defer downloading the response body until you access the :attr:`Response.content <requests.Response.content>` attribute with the ``stream`` parameter:: - tarball_url = 'https://github.com/kennethreitz/requests/tarball/master' + tarball_url = 'https://github.com/requests/requests/tarball/master' r = requests.get(tarball_url, stream=True) At this point only the response headers have been downloaded and the connection @@ -642,7 +642,7 @@ from GitHub. Suppose we wanted commit ``a050faf`` on Requests. We would get it like so:: >>> import requests - >>> r = requests.get('https://api.github.com/repos/kennethreitz/requests/git/commits/a050faf084662f3a352dd1a941f2c7c9f886d4ad') + >>> r = requests.get('https://api.github.com/repos/requests/requests/git/commits/a050faf084662f3a352dd1a941f2c7c9f886d4ad') We should confirm that GitHub responded correctly. If it has, we want to work out what type of content it is. Do this like so:: @@ -697,12 +697,12 @@ we should probably avoid making ham-handed POSTS to it. Instead, let's play with the Issues feature of GitHub. This documentation was added in response to -`Issue #482 <https://github.com/kennethreitz/requests/issues/482>`_. Given that +`Issue #482 <https://github.com/requests/requests/issues/482>`_. Given that this issue already exists, we will use it as an example. Let's start by getting it. :: - >>> r = requests.get('https://api.github.com/repos/kennethreitz/requests/issues/482') + >>> r = requests.get('https://api.github.com/repos/requests/requests/issues/482') >>> r.status_code 200 @@ -745,7 +745,7 @@ is to POST to the thread. Let's do it. :: >>> body = json.dumps({u"body": u"Sounds great! I'll get right on it!"}) - >>> url = u"https://api.github.com/repos/kennethreitz/requests/issues/482/comments" + >>> url = u"https://api.github.com/repos/requests/requests/issues/482/comments" >>> r = requests.post(url=url, data=body) >>> r.status_code @@ -779,7 +779,7 @@ that. 5804413 >>> body = json.dumps({u"body": u"Sounds great! I'll get right on it once I feed my cat."}) - >>> url = u"https://api.github.com/repos/kennethreitz/requests/issues/comments/5804413" + >>> url = u"https://api.github.com/repos/requests/requests/issues/comments/5804413" >>> r = requests.patch(url=url, data=body, auth=auth) >>> r.status_code diff --git a/docs/user/install.rst b/docs/user/install.rst index 922c489b..96884558 100644 --- a/docs/user/install.rst +++ b/docs/user/install.rst @@ -22,7 +22,7 @@ Get the Source Code ------------------- Requests is actively developed on GitHub, where the code is -`always available <https://github.com/kennethreitz/requests>`_. +`always available <https://github.com/requests/requests>`_. You can either clone the public repository:: |
