summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Roztocil <jakub@roztocil.co>2020-12-21 12:14:41 +0100
committerJakub Roztocil <jakub@roztocil.co>2020-12-21 12:14:41 +0100
commit0629f2ff4288e9834a6686e54be2acc65e6f18de (patch)
tree05e99bba872891996bd5145fc3de85592910f065
parentd71b7eee813952555e04264ce3055cd51a9bc1ef (diff)
Fix `--stream` example II
-rw-r--r--README.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index d8f3862a..dea063e2 100644
--- a/README.rst
+++ b/README.rst
@@ -1730,8 +1730,7 @@ Streamed output by small chunks à la ``tail -f``:
# Send each new tweet (JSON object) mentioning "Apple" to another
# server as soon as it arrives from the Twitter streaming API:
- $ http --stream -f -a YOUR-TWITTER-NAME https://stream.twitter.com/1/statuses/filter.json track=Apple \
- | while read tweet; do echo "$tweet" | http POST example.org/tweets ; done
+ $ http --stream httpbin.org/stream/3 | while read line; do echo "$line" | http httpbin.org/post ; done
Sessions
========