Ruby Twitter Gem と Twitter4R のどちらがいいんだろう。とりあえず前者をインストール。 sudo gem install twitter もしRubyGemが古いと言われたら sudo gem update --system を先にする。プログラムはこんな具合。 #! /usr/bin/ruby # -*- coding: utf-8 -*- require 'rubygems' gem 'twitter' require 'twitter' httpauth = Twitter::HTTPAuth.new("h_okumura", "hoge") base = Twitter::Base.new(httpauth) base.update('ハロー,ついったー') # 書き込み base.friends_timeline.each { |tweet| puts