Created
May 20, 2011 13:58
-
-
Save camilleroux/982932 to your computer and use it in GitHub Desktop.
Bulk Follow of Twitter accounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "twitter" | |
Twitter.configure do |config| | |
config.consumer_key = YOUR_CONSUMER_KEY | |
config.consumer_secret = YOUR_CONSUMER_SECRET | |
config.oauth_token = YOUR_OAUTH_TOKEN | |
config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET | |
end | |
client = Twitter::Client.new | |
puts "connected as @#{client.user.name}" | |
accounts = %w{camilleroux} #here the list of Twitter accounts you want to follow | |
accounts.each do |account| | |
client.follow(account) | |
puts "#{account} added" | |
sleep 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment