Skip to content

Ruby script to unfollow twitter users who's following you

License

Notifications You must be signed in to change notification settings

bennesp/unfollow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unfollow.rb

This is my first scripts with Twitter REST API

What does it do?

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"]

How to start? (Ruby and Needed Gems Installation)

First you must have ruby, and installed this gems:

  • oauth

  • twitter

  • yaml

  • timeout

Ubuntu and Debian-based

On Ubuntu simply run

$ sudo apt-get install ruby

$ sudo gem install oauth twitter

Othres Linux Distros

Install ruby and gem with your package manager or from source, and run from root # gem install oauth twitter

Windows

On Windows

Run!

Now you can run $ ruby unfollow.rb to configure it and unfollow who's not following you!!

About

Ruby script to unfollow twitter users who's following you

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages