tail-like interface added

This commit is contained in:
Alexandre Dulaunoy 2011-01-10 13:49:01 +01:00
parent e603b5e6ff
commit 0d4fa74143

View file

@ -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