Evan Martin (evan) wrote in lj_clients,
Evan Martin

Ruby module for LiveJournal

I wrote this a while ago, but never had a use for it so I never published it.

This is a LiveJournal module for the language Ruby, which is a sort of cross between Smalltalk and Perl but is more often compared to Python.

It currently only wraps a subset of the LiveJournal protocol, but adding to it should be trivial because the framework is in place.

Or, read the unfinished docs.

Here is some sample code, which dumps your friend-of list and demonstrates some objects:

require 'livejournal'

user = LiveJournal::User.new('test', 'test')
req = LiveJournal::Request::FriendOfs.new(user)
friendofs = req.run()
friendofs.each {|friend|
  puts "#{friend.fullname} (#{friend.username})"

Hopefully it's self-explanatory. :)

  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 1 comment