https://github.com/halvves/node-wikimon
A Wikipedia Event Stream (public stream avail at: https://wikimon.glitch.me)
https://github.com/halvves/node-wikimon
event-source event-stream wikipedia wikipedia-api
Last synced: 10 months ago
JSON representation
A Wikipedia Event Stream (public stream avail at: https://wikimon.glitch.me)
- Host: GitHub
- URL: https://github.com/halvves/node-wikimon
- Owner: halvves
- Created: 2017-06-01T05:51:31.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T17:23:01.000Z (over 4 years ago)
- Last Synced: 2025-01-26T07:11:19.592Z (12 months ago)
- Topics: event-source, event-stream, wikipedia, wikipedia-api
- Language: JavaScript
- Homepage: https://wikimon.glitch.me/test
- Size: 55.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wikimon
Live event stream of wikipedia updates (a spinoff of [hatnote/wikimon](https://github.com/hatnote/wikimon)) deployed to glitch.
Github: [halvves/node-wikimon](https://github.com/hatnote/wikimon)
Test page: [https://wikimon.glitch.me/test](https://wikimon.glitch.me/test)
Subscribe to a public version of the stream:
```javascript
const es = new EventSource("https://wikimon.glitch.me");
es.onmessage = function(e) {
const dat = JSON.parse(e.data);
processData(dat);
};
```
## Format
Here are a couple example messages, as broadcast over SSE:
```json
{
"action": "edit",
"change_size": 191,
"flags": "!N",
"hashtags": [],
"is_anon": false,
"is_bot": false,
"is_minor": false,
"is_new": true,
"is_unpatrolled": true,
"mentions": [],
"ns": "",
"page_title": "User:Abhisirohi5",
"rev_id": "783343086",
"summary": "[[WP:AES|←]]Created page with '[[Abhishek Sirohi]] Abhishek Sirohi is a Master of Computer Science Student at the University of Melbourne. He is a published scientific author and wants to achi...'",
"url": "https://en.wikipedia.org/w/index.php?oldid=783343086&rcid=947971474",
"user": "Abhisirohi5"
}, {
"action": "create",
"change_size": null,
"flags": null,
"hashtags": [],
"is_anon": false,
"is_bot": false,
"is_minor": false,
"is_new": false,
"is_unpatrolled": false,
"mentions": [],
"ns": "",
"page_title": "Special:Log/newusers",
"summary": "New user account",
"url": null,
"user": "BernJL"
}
```
## See also
* [wikimon](https://github.com/hatnote/wikimon)
* [hatnote](https://github.com/hatnote)
* [Stephen LaPorte](https://github.com/slaporte)
* [Mahmoud Hashemi](https://github.com/mahmoud)