Skip to content

Instantly share code, notes, and snippets.

View LeoNogueira's full-sized avatar

Leonardo Nogueira LeoNogueira

View GitHub Profile
require 'rubygems'
require 'twitter'
require 'open-uri'
require 'yajl'
def auto_follow
twitter_config = ConfigStore.new("config/twitter_credentials.yml")
shortening_config = ConfigStore.new("config/url_shortening.yml")
httpauth = Twitter::HTTPAuth.new(twitter_config['email'], twitter_config['password'])
base = Twitter::Base.new(httpauth)