Skip to content

Instantly share code, notes, and snippets.

@igaiga
Created March 4, 2010 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igaiga/321527 to your computer and use it in GitHub Desktop.
Save igaiga/321527 to your computer and use it in GitHub Desktop.
get_twitter_using_hash
#! ruby -Ku
# coding: utf-8
require "rubygems"
require "twitter" # gem install twitter
tw_hash = 'igaiga'
page_max = 3
(1..page_max).each do |page_num|
Twitter::Search.new.hashed(tw_hash).page(page_num).per_page(200).each do |t|
puts "#{t.from_user} : #{t.text}"
# p t
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment