Sha256: 513dbab2840321e61ddf3d32ff07cbc4cdbd01c1e08003ddbe1956fd26b2850c

Contents?: true

Size: 389 Bytes

Versions: 35

Compression:

Stored size: 389 Bytes

Contents

# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

require 'rubygems'
require 'yajl/http_stream'
require 'uri'

unless keywords = ARGV[0]
  puts "\nUsage: ruby examples/http/twitter_search_api.rb keyword\n\n"
  exit(0)
end
captured = 0
uri = URI.parse("http://search.twitter.com/search.json?q=#{keywords}")

puts Yajl::HttpStream.get(uri).inspect

Version data entries

35 entries across 35 versions & 5 rubygems

Version Path
brianmario-yajl-ruby-0.5.0 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.1 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.10 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.11 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.12 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.2 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.3 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.4 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.5 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.6 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.7 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.8 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.5.9 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.6.0 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.6.1 examples/http/twitter_search_api.rb
brianmario-yajl-ruby-0.6.3 examples/http/twitter_search_api.rb
jdg-yajl-ruby-0.5.12 examples/http/twitter_search_api.rb
oortle-yajl-ruby-0.5.8 examples/http/twitter_search_api.rb
yajl-ruby-0.6.7 examples/http/twitter_search_api.rb
yajl-ruby-0.6.6 examples/http/twitter_search_api.rb