Importing directly into the database?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
jcostantino

Importing directly into the database?

Post by jcostantino »

I have approx. 450 posts to import from LiveJournal and the RSS import only goes back one month. Is there any way to inject my LJ posts directly into the mysql database or import the XML file?

It's not a big deal if I can't but it sure would be nice to have everything (two and a half years) moved over.
kidgoo
Regular
Posts: 71
Joined: Thu May 12, 2005 6:53 am

Post by kidgoo »

IIRC, there's not a way to export all entries through livejournal...
You can import XML files through s9y, but it won't help if you can only grab one month at a time...

You could write a script to parse the livejournal pages, strip out the non-entry content, and then stuff it into the database....it might not be too terribly difficult. I've never used livejournal to know...

Brett
jcostantino

Post by jcostantino »

I actually found a program (ljbackup) that downloads everything into one file and then can output CSV or XML.

When it outputs XML, how do I import it into s9y? I tried using the MovableType import but that didn't work - not that I was expecting it to, though.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You'd need to convert the XML into RSS format. I bet if there's a ljbackup tool there must be a ljbackup->RSS transforming tool available, too...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jcostantino

Post by jcostantino »

I didn't even think to convert the xml to rss! I'll have to give that a shot, thanks!
Post Reply