You are viewing arachnejericho

I'm tired.

psmith
Obama pictures and McCain pictures

http://neugierig.org/software/livejournal/ruby/

require 'rubygems'
require 'livejournal/sync'

user = LiveJournal::User.new('####', '####')

sync = LiveJournal::Sync::Entries.new(user)
sync.run_syncitems do |cur, total|
    puts "#{cur} of #{total}"
end
sync.run_sync do |entries, lastsync, remaining|
    entries.each do |itemid, entry|
        if (entry.subject !~ /I'm tired/)
            entry.security = :private
            puts "Processing #{entry.subject}"
            edit_event = LiveJournal::Request::EditEvent.new(user, entry)
            edit_event.run
        end
    end
end

puts "kthxbai"

Latest Month

February 2009
S M T W T F S
1234567
891011121314
15161718192021
22232425262728

Page Summary

Syndicate

RSS Atom
Powered by LiveJournal.com
Designed by yoksel