Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:118752
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/usr/bin/env ruby
 
require "kconv"
require "rubygems"
require "twitter"
require "mixi"
 
username = ''
password = ''
 
httpauth = Twitter::HTTPAuth.new(username, password)
twitter = Twitter::Base.new(httpauth)
 
todays_timeline = []
 
twitter.user_timeline({:count => 200}).each do |line|
todays_timeline.push(line.text) if DateTime.parse(line.created_at) > DateTime.now - 1
end
 
todays_timeline.reverse!
 
puts body = todays_timeline.join("\n")
 
con = Mixi::Connection.new(:email => '', :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.