Skip to content

Instantly share code, notes, and snippets.

@twe4ked
Created March 26, 2012 06:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twe4ked/2203410 to your computer and use it in GitHub Desktop.
Save twe4ked/2203410 to your computer and use it in GitHub Desktop.
Simple, slow script to add Twitter users to a list.
# 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