Migrating from Journalspace

Some time in the distant past I created a personal blog on Journalspace, which fulfilled a need for a while. However some gapping holes in functionality, particuarly around RSS feeds at first irritated me, and eventually it annoyed me enough to move the blog to somewhere more standards compliant.

Anyway, as you might guess from the RSS feeds issue, journalspace doesn't have a proper export facility either, so a bit of scripting was called for, and gives us js-migrate

[fintanr@tiresias js-migrate] $ js-migrate -h

Usage : js-migrate -u <js url> -c <cookie file> -p <post no>|-s <start no> -e <end no>[-o outfile][-v][-h]

Cookie file is your Mozilla Cookie file
i.e. to extract entries 190 to 200 from my journalspace blog its
js-migrate -u http://fintanr.journalspace.com -c /home/fintanr/.mozilla/firefox/0m9ff4xw.default/cookies.txt -s 190 -e 200 -o 166-200.xml

The script is valid for the html as found on the journalspace site on August 11th 2007, so it may need to be hacked around with, but it should be a starting point anyway There are a couple of caveats documented in the comments, but its a once off job so the caveats are just minor inconveniences rather than major issues. The nastiest hack is around entities (a mess was made out of links in posts during imports). The script itself is licensed under the CDDL.

Requirements

You will need to have the following CPAN modules installed.

Download

© fintanr, August 12th 2007

Creative Commons License
This work is licensed under a
Creative Commons Attribution-Share
Alike 3.0 License
.