Project

mihatter

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Simple Twitter crawler
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
>= 0
~> 10.0

Runtime

 Project Readme

Mihatter

Mihatter is a simple Twitter crawler.

Installation

Add this line to your application's Gemfile:

gem 'mihatter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mihatter

Usage

require 'mihatter'

Mihatter.configuration do |config|
  config.consumer_key = '.....'
  config.consumer_secret = '.....'
  config.access_token = '.....'
  config.access_token_secret = '.....'

  config.keyword = 'sushi'
end

# use REST API
watcher = Mihatter::RestWatcher.new
watcher.run! do |tweet|
  puts tweet.text
end

# use Streaming API (only English, cannot use CJK)
watcher = Mihatter::StreamingWatcher.new
watcher.run! do |tweet|
  puts tweet.text
end

License

MIT

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rutan/mihatter.