Skip to content

Instantly share code, notes, and snippets.

@zeke
zeke / tweets_from_list.rb
Created October 25, 2012 04:30
A simple way to ingest tweets from a Twitter list.
%w(rubygems httparty pry).each {|lib| require lib }
class Twitter
include HTTParty
base_uri 'api.twitter.com/1'
def self.tweets_from_list(user, list, options={})
options[:page] ||= 1
options[:per_page] ||= 5
get("/#{user}/lists/#{list}/statuses.json", options)