RCStream

RCStream is a tool that provides a realtime data stream of MediaWiki edits over the web. It uses Socket.IO, a realtime webapp programming framework that automatically selects a protocol based on the capabilities of the user's browser. On modern browsers, Socket.IO uses WebSockets. Additionally, Socket.IO clients exist in several popular programming languages, making it suitable for building standalone applications as well as webapps.

JavaScript
Consuming the Recent Changes stream from JavaScript requires loading the Socket.IO client library. RCStream provides a simple API for subscribing to the change stream of a subset of Wikimedia wikis, or you can subscribe to all wikis by subscribing to the special topic name '*'.

Python
The following sample Python code prints each change to standard output: