This little coffee script will watch Wikipedia for edits from a set of named IP ranges and will tweet when it notices one. It was inspired by @parliamentedits and is used to make the @congressedits feed available.
If you are curious the default IP ranges for the US Congress in the config.json.template
file came from govtrack. You can learn more about the significance of Congressional edits to Wikipedia here and here.
To run anon you will need to:
- install Node
git clone https://github.com/edsu/anon.git
cd anon
npm install
cp config.json.template config.json
- add twitter credentials for your bot to config.json
- add ip ranges/names to config.json
coffee anon.coffee
- have some ☕ and wait
There is a small test suite for testing ip range logic:
npm test
- CC0 public domain dedication