diff options
author | Cory Benfield <lukasaoz@gmail.com> | 2014-09-20 15:00:36 +0100 |
---|---|---|
committer | Cory Benfield <lukasaoz@gmail.com> | 2014-09-20 15:00:36 +0100 |
commit | 466a70f7c1ff4a268df3ff2f28a8afb78046b8bd (patch) | |
tree | d0a0cb62e06b3e71bc7d424111d23d2ceadef6a0 | |
parent | 082c8d0db884f8b2e3eaa09cb82fb1639fd559f9 (diff) | |
download | python-requests-466a70f7c1ff4a268df3ff2f28a8afb78046b8bd.tar.gz |
Fixup the remaining references to timeline.json.
-rw-r--r-- | docs/user/quickstart.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index 9d4e6904..f3543567 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -81,7 +81,7 @@ We can read the content of the server's response. Consider the GitHub timeline again:: >>> import requests - >>> r = requests.get('https://github.com/timeline.json') + >>> r = requests.get('https://api.github.com/events') >>> r.text u'[{"repository":{"open_issues":0,"url":"https://github.com/... @@ -134,7 +134,7 @@ JSON Response Content There's also a builtin JSON decoder, in case you're dealing with JSON data:: >>> import requests - >>> r = requests.get('https://github.com/timeline.json') + >>> r = requests.get('https://api.github.com/events') >>> r.json() [{u'repository': {u'open_issues': 0, u'url': 'https://github.com/... @@ -150,7 +150,7 @@ In the rare case that you'd like to get the raw socket response from the server, you can access ``r.raw``. If you want to do this, make sure you set ``stream=True`` in your initial request. Once you do, you can do this:: - >>> r = requests.get('https://github.com/timeline.json', stream=True) + >>> r = requests.get('https://api.github.com/events', stream=True) >>> r.raw <requests.packages.urllib3.response.HTTPResponse object at 0x101194810> >>> r.raw.read(10) |