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
npm install -g anoncurl https://raw.githubusercontent.com/edsu/anon/master/config.json.template > config.json- add twitter credentials for your bot to
config.json - add IP ranges/names to
config.json anon- have some ☕ and wait
If you would like to test without tweeting you can run anon with the
--noop flag, which will cause the tweet to be written to the console
but not actually sent to Twitter.
anon --noop
By default anon will look for a config.json file in your current working
directory. If you would like to specify the location of the configuration
file use the --config parameter:
anon --config test.config
There's not much to anon but there is a small test suite, which might come in handy if you want to add functionality.
git clone https://github.com/edsu/anon.git
cd anon
npm install
cp config.json.template config.json
npm test
- CC0 public domain dedication
