/anon

tweet about anonymous Wikipedia edits from particular IP address ranges

Primary LanguageCoffeeScriptCreative Commons Zero v1.0 UniversalCC0-1.0

anon

Build Status

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.

Running

To run anon you will need to:

  1. install Node
  2. npm install -g anon
  3. curl https://raw.githubusercontent.com/edsu/anon/master/config.json.template > config.json
  4. add twitter credentials for your bot to config.json
  5. add IP ranges/names to config.json
  6. anon
  7. 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

Develop

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

License:

  • CC0 public domain dedication