Skip to content
Create a gist now

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require "kconv"
require "rubygems"
require "twitter"
require "mixi"
username = ''
password = ''
httpauth =, password)
twitter =
todays_timeline = []
twitter.user_timeline({:count => 200}).each do |line|
todays_timeline.push(line.text) if DateTime.parse(line.created_at) > - 1
puts body = todays_timeline.join("\n")
con = => '', :password => '')
con.login_user.add_diary('Twiter', body.toeuc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.