This is my first scripts with Twitter REST API
It unfollow on Twitter all people aren't following you, except for
- Verfied Accounts
- Whitelisted Users in 'whitelist' file
And can track who has unfollowed you.
Script is very configurable, this is a default example of a settings.rb:
@ck = "consumer_key"
@cs = "consumer_secret_key"
@f = ".tokens"
@dataFile = "data"
@cache = true
@cache_time = 600
@use_colors = true
@verbose = 2
# change these with your whitelisted users
@whitelist = ["alecover", "marcobianchiweb"]
First you must have ruby, and installed this gems:
-
oauth
-
twitter
-
yaml
-
timeout
On Ubuntu simply run
$ sudo apt-get install ruby
$ sudo gem install oauth twitter
Install ruby and gem with your package manager or from source, and run from root
# gem install oauth twitter
On Windows
- Download ruby from http://rubyinstaller.org/
- Run from cmd.exe with administrator rights:
> gem install oauth twitter
Now you can run $ ruby unfollow.rb
to configure it and unfollow who's not following you!!