Skip to content
/ anon Public
forked from edsu/anon

tweet about anonymous Wikipedia edits from particular IP address ranges

License

Notifications You must be signed in to change notification settings

vhish/anon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 coffee-script
  3. git clone https://github.com/edsu/anon.git
  4. cd anon
  5. cp config.json.template config.json
  6. add twitter credentials for your bot to config.json
  7. add IP ranges/names to config.json
  8. ./anon.coffee
  9. have some ☕ and wait

You may notice in the example config.json.template that you can configure ip address ranges using a netmask:

  "143.231.0.0/16"

or with an array of start/end IP addresses:

["143.231.0.0", "143.231.255.255"]

These two are equivalent, but the former is a bit faster, and easier to read The latter is convenient if your range is difficult to express using a netmask.

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.coffee --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.coffee --config test.config

Develop

There is not much to anon but there is a small test suite, which might come in handy if you want to add functionality.

npm test

License:

  • CC0 public domain dedication

About

tweet about anonymous Wikipedia edits from particular IP address ranges

Resources

License

Stars

Watchers

Forks

Packages

No packages published