From 0d4fa7414382055290b06be4ee03fb6d5c44757f Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 10 Jan 2011 13:49:01 +0100 Subject: [PATCH] tail-like interface added --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 866f914..e829b47 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ Usage -c STATESEC, --cleanstate=STATESEC expire states existing more than number of seconds specified + -t, --tail tail-like operation by continuously appending new + changes (--state option is enable) ### Sample usage @@ -45,6 +47,10 @@ You can clear the state following an interval specified in seconds. % python wikirc2text.py -c 60 29 states deleted +You can also use the tail-like interface to have a continuous update of the new recent changes. + + % python wikirc2text.py "http://en.ekopedia.org/w/index.php?title=Special:RecentChanges&feed=atom" --tail + ### Usage with sendxmpp % python wikirc2text.py --state "http://www.hackerspace.lu/w/index.php?title=Special:RecentChanges&feed=atom" | head -5 |sendxmpp -u yourbotname -p yourbotpassword -r yourbotressource -j an.xmpp.server -t -c aconference@conference.somewhere