Created
March 26, 2012 06:26
-
-
Save twe4ked/2203410 to your computer and use it in GitHub Desktop.
Simple, slow script to add Twitter users to a list.
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
# Written in a taxi on the way to Railscamp X | |
require 'twitter' | |
Twitter.configure do |config| | |
config.consumer_key = | |
config.consumer_secret = | |
config.oauth_token = | |
config.oauth_token_secret = | |
end | |
users = %w[jasoncodes ltw_ twe4ked tatejohnson nathanaelkane] | |
users.each do |user| | |
begin | |
user_id = Twitter.user(user).id | |
Twitter.list_add_member('ennova_developers', user_id) | |
p "added #{user}" | |
rescue | |
p "error on #{user}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment