mirror of
https://github.com/adulau/wikirc2text.git
synced 2024-12-22 00:35:59 +00:00
tail-like interface added
This commit is contained in:
parent
e603b5e6ff
commit
0d4fa74143
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue