User:Pathoschild/2008 RC feed format
This page documents the format used by the raw recent changes feeds on irc.wikimedia.org for use in developing CVNbot.
Every line in the feed is formatted using control codes, so that a script can parse each datum by splitting the message along control codes:
Perl | @data = split(/\s*(?:�\d?\d?|�)\s*/, $rcMessage);
|
Python | rc_delimiter = re.compile(r"\s*(?:\x03\d?\d?|\x03)\s*")
data = rc_delimiter.split(rcMessage)
|
Edit edit
Visible message | [[Thomas Daniel Winter]] M http://en.wikipedia.org/w/index.php?title=Thomas_Daniel_Winter&diff=199949258&oldid=177558063 * TubularWorld * (+4) Standardising headings, Replaced: ==Source== → ==References== using [[Project:AutoWikiBrowser|AWB]] |
---|---|
@data values | 0{} |
notes |
|
Log events edit
block / unblock edit
Visible message |
|
---|---|
@data values (block) |
0{} |
@data values (unblock) |
0{} |
create edit
Visible message | [[Special:Log/newusers]] create * Bigdamballz69 * New user account |
---|---|
@data values | 0{} |
create2 edit
Visible message | [[Special:Log/newusers]] create2 * Pathoschild * created new account User:Pathoschild2 |
---|---|
@data values | 0{} |
delete edit
Visible message | [[Special:Log/delete]] delete * CJLL Wright * deleted "[[Category:Jostein Gaardner novels]]": reason for deletion |
---|---|
@data values | 0{} |
notes | If the reason for deletion is blank, $data[16] will contain {]]":}. |
move / move_redir edit
Visible message | [[Special:Log/move]] move_redir * Father Goose * moved [[User talk:Equazcion/Just drop it]] to [[Wikipedia talk:Just drop it]] over redirect: reason |
---|---|
@data values | 0{} |
notes | the "move" event is identical but without " over redirect" in $data[16]. |
protect edit
Visible message | [[Special:Log/protect]] protect * Pathoschild * protected "[[User:Pathoschild]]": test [edit=sysop:move=sysop] |
---|---|
@data values | 0{} |
restore edit
Visible message | [[Special:Log/delete]] restore * Pathoschild * restored "[[User:Pathoschild/Sandbox4]]": 26 revisions restored: test |
---|---|
@data values | 0{} |
rights edit
Visible message | [[Special:Log/rights]] rights * Pathoschild * changed group membership for User:Pathoschild from bureaucrat, import, povwatch, steward, sysop to bureaucrat, import, povwatch, steward, sysop, bot: test |
---|---|
@data values | 0{} |
upload (file upload) / overwrite edit
Visible message |
|
---|---|
@data values (upload) |
0{} |
@data values (overwrite) |
0{} |
notes | If nothing is entered in the content box when overwriting, $data[16] will end at {"}. |
upload (XML import) edit
Visible message |
|
---|---|
@data values (XML import) |
0{} |
See also edit
- MediaWiki's RecentChange class (which sends the formatted string to the IRC server)