projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8180f5
)
update verbiage about streaming requests
author
Randy Morris
<randy.morris@archlinux.us>
Mon, 7 Oct 2013 14:43:48 +0000
(10:43 -0400)
committer
Randy Morris
<randy.morris@archlinux.us>
Mon, 7 Oct 2013 14:43:48 +0000
(10:43 -0400)
The Twitter API is no longer used in the example.
docs/user/advanced.rst
patch
|
blob
|
history
diff --git
a/docs/user/advanced.rst
b/docs/user/advanced.rst
index
c065c04
..
0047b47
100644
(file)
--- a/
docs/user/advanced.rst
+++ b/
docs/user/advanced.rst
@@
-275,8
+275,7
@@
Streaming Requests
With ``requests.Response.iter_lines()`` you can easily iterate over streaming
APIs such as the `Twitter Streaming API <https://dev.twitter.com/docs/streaming-api>`_.
-
-To use the Twitter Streaming API to track the keyword "requests"::
+Simply set ``stream`` to ``False`` and iterate over the response with ``iter_lines()``::
import json
import requests