1. Sho Hashimoto
  2. bot-ahokai

Wiki

Clone wiki

bot-ahokai / Home

Welcome

ahokai is a twitter bot.

It using some rubygems modules.

  • activerecord
  • feed-normalizer
  • hpricot
  • xml-simple
  • twitter
  • simple-rss
  • sqlite3-ruby
  • mecab

and SQLite3, MeCab

twitter config

please rename sample.config.yaml -> config.yaml

then edit username&password

make DB

ruby migrate_posts.rb up
ruby migrate_ngrams.rb up

crawl data

crawl recent 10 pages

ruby store.rb

crawl 160 pages

ruby store.rb 160

make n-gram data

ruby make3gram.rb

post 3-gram

ruby post3gram.rb

Updated