Twitter でイチイチ follow するのが面倒くさい んだけど自前でメールサーバも立ててない - Djangoへの片思い日記 関連. Rubyだとこんな感じかな? 以下,付属ライブラリのみ使用. 自前のIMAP4サーバに対してしかテストしてないけど,たぶんGmailでも動くんじゃないかと思う. #!/usr/local/bin/ruby require 'net/imap' require 'open-uri' # IMAP4 configuration: SERVER = 'imap.gmail.com' USER = 'exampleuser@gmail.com' PASSWD = 'gmail_password_here' class Twitter USER = 'twitter_username_here' PASSWD = 'twitter_password_here'