Migrating LiveJournal

I’m working at pulling everything in from different places. The first is my LiveJournal. The process took a little finagling:

  1. Downloaded jbackup.pl from heinous.org
  2. Installed XMLRPC::Lite

    1. Ran sudo perl -MCPAN -e shell
    2. From within that program ran: install XMLRPC::Lite
  3. Ran: perl jbackup.pl --user=ivankara --password=shhh,secret --sync --dump=xml --file=ivankara.ljml

Unfortunately, at this point things didn’t go quite so easily. There are two issues:

  • The WordPress 2.5 LiveJournal import script doesn’t use an actual XML parser to parse the XML. It uses a series of regular expressions. This, not surprisingly, breaks at times. In fact no entries at all will be imported because it matches on <entry>(.*)</entry> and the XML from jbackup has attributes in its entries (<entry jitemid="1">).
  • WordPress has four options for how you can control the visibility of your posts:

    • The entire blog is public to the world
    • The entire blog is password protected
    • Individual posts are visible only to the author
    • Individual posts are uniquely password protected

    Specifically what is missing is what LiveJournal uses where individual posts are non-publicly visible, but they are visible to groups of authenticated users. WordPress does have a user authentication and roles system in place, so may there’s a plug-in somewhere.

To get something up, I wrote a simple XSLT transform to get things in a format that WordPress likes: wp-format.xslt.

I could then import the results of xsltproc wp-format.xslt ivankara.ljml >ivankara.wp.ljml.

Now I just have to go through and categorize things and make private anything that still needs to be so.

  • Share/Bookmark