https://github.com/derhuerst/wikipedia-edits-stream
A live stream of page edits on Wikipedia.
https://github.com/derhuerst/wikipedia-edits-stream
edits eventsource realtime wikipedia
Last synced: 4 months ago
JSON representation
A live stream of page edits on Wikipedia.
- Host: GitHub
- URL: https://github.com/derhuerst/wikipedia-edits-stream
- Owner: derhuerst
- License: isc
- Created: 2017-05-30T22:02:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T10:56:39.000Z (about 4 years ago)
- Last Synced: 2025-02-08T19:46:01.023Z (over 1 year ago)
- Topics: edits, eventsource, realtime, wikipedia
- Language: JavaScript
- Homepage: https://github.com/derhuerst/wikipedia-edits-stream
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# wikipedia-edits-stream
**A live stream of [page edits on Wikipedia](https://www.mediawiki.org/wiki/API:Recent_changes_stream).**
[](https://www.npmjs.com/package/wikipedia-edits-stream)
[](https://travis-ci.org/derhuerst/wikipedia-edits-stream)

[](https://gitter.im/derhuerst)
[](https://patreon.com/derhuerst)
## Installing
```shell
npm install wikipedia-edits-stream
```
## Usage
Refer to the [manual on the edits format](https://www.mediawiki.org/wiki/Manual:RCFeed#Properties) for more info.
```js
const edits = require('.')
const e = edits()
e.on('data', console.log)
e.on('error', (err) => {
console.error(err)
process.exit(1)
})
setTimeout(() => e.close(), 10 * 1000)
```
## Contributing
If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/wikipedia-edits-stream/issues).