import from LiveJournal

  • Author
    Posts
  • #2826881

    kokkieh
    Staff

    The file we can import here needs to have xml and rss and a bunch of other tags that identify and distinguish between post dates, titles, authors, content, etc, so it’s really much more complex and looks completely different.

    But our developers are very smart, and if there’s a way to use that file they should be able to find it. But that also means if they tell me it’s not possible, I’ll believe them :)

    I’ll keep you posted.

    #2826883

    artphilia
    Member

    I’m hoping there will be a solution to this, because I really want to import my LJ posts to WP too! :)

    #2826884

    I’m hoping to do that same thing. I have an account on LJ that I haven’t used for years but have over 150 posts that I’d like to bring with me to my new private blog (diary) on WP.com. I’ve repeatedly tried the import tool as well as all the other suggestions made on the thread. I’d love to know what, if anything, is being done to get around this. Moving my posts from Blogger was no issue but I certainly don’t want to have to manually bring over all those posts. #frustrated

    #2826885

    kokkieh
    Staff

    Hi everyone,

    Just an update on this: We looked at the file that @autojim provided, but there’s no way of importing that file using any existing WordPress importer.

    We’ve submitted a support ticket directly to LJ regarding their API’s failure, but unless we hear back from them and they fix it on their end there’s nothing more we can do at this point. And it’s not just us. The self-hosted WordPress.org LJ importer is giving the same error, as do LJ importers on other services, so the problem is definitely on LJ’s end.

    So at this point the only other option I can offer is to set up a self-hosted WordPress site, either online or locally on your machine, and then try to import your LJ site using the RSS feed. Once it’s imported to the self-hosted site, you can then create a WordPress export file from there which you can import here. It’s not guaranteed to work, but it’s all I have to suggest at this point.

    You can find instructions on how to install WordPress locally here:

    https://codex.wordpress.org/Installing_WordPress#Installing_WordPress_on_your_own_Computer

    And here is an option for an RSS importer for self-hosted WordPress:

    https://wordpress.org/plugins/rss-post-importer/

    #2826887

    The problem with the LJ RSS feed is that it only shows your most recent 25 posts. Does anyone know how to extract more than 25? What @kokkieh said is true, you can import them using the RSS to a self-hosted site and using the plugin WP All Import but with the 25 post cap, it doesn’t give you fully what you need.

    #2826888

    autojim
    Member

    Well, thanks to everyone for taking a look. I’ll look at one of those other options.

    #2826890

    I have put in a helpdesk ticket to LJ to see if we can access more than just the most recent 25 posts because as it was noted earlier if you use the export option on LJ the XML is not useable because the format is wrong. I’ll be sure to provide any additional information I may get.

    #2826891

    truedem
    Member

    By the way – here you can export articles into CSV/XML files month by month:

    http://www.livejournal.com/export.bml

    #2826893

    kokkieh
    Staff

    @truedem

    You can export them, yes, but there is currently no WordPress importer, either with us or self-hosted WordPress, that can import that file. But at the very least that’s a way to keep your content safe off of LJ’s servers.

    #2826896

    gregstoll
    Member

    I’ve also written an LJ exporter at

    https://gregstoll.com/ljbackup/

    It still seems to be working with the LJ API, and it includes an .xml file that has the content of all of your posts. (including tags, etc) I’m working on a converter that will convert this to the WordPress XML format. Hopefully I’ll be able to figure it out!

    #2826897

    kokkieh
    Staff

    @gregstoll

    Does this use the REST API? We deliberately don’t use that as it requires the password to be sent as plaintext instead of hashed as with their XMLRPC API, which is completely insecure. I see you do advise that people change the LJ password when using your exporter, but we don’t recommend this method. It might be safer to use LJ’s own XML exporter instead.

    However, if you’re able to write a converter for the LJ XML file to make it compatible it might help a lot of people. Please let us know if you’re able to get that working.

    #2826898

    ladymercury
    Member

    So is the issue with the LJ API simply being broke or is there something wrong with the plugin pulling entries from LJ via their API?

    #2826899

    gregstoll
    Member

    @kokkieh

    No, it’s using the XMLRPC API. (you can see the source at https://gregstoll.com/ljbackup/getljposts.txt – see doMethod() where the script gets a challenge and hashes it with the password)

    I’m almost done with a converter but it works on the output of LJBackup, which is (presumably) pretty different from the LJ XML file. I’ll post here when it’s ready for use.

    #2826900

    kokkieh
    Staff

    No, it’s using the XMLRPC API

    Thanks. I’ve given your link to our developers as well. Maybe you’re doing something differently from the WordPress importer which is allowing yours to work where ours doesn’t.

    I’m almost done with a converter but it works on the output of LJBackup, which is (presumably) pretty different from the LJ XML file

    Got it. I was hoping it might be something we could incorporate into the WordPress importer, but if it specifically works with your exporter’s output that might not be possible. Still, if it works and you’re willing to share it here :)

    @ladymercury

    So is the issue with the LJ API simply being broke or is there something wrong with the plugin pulling entries from LJ via their API?

    From all our testing the problem is with the LJ API which is known to not be very reliable, and we know of other clients and services that are also having trouble with importing from LJ at this time. But it looks like @gregstoll might be onto a solution.

    #2826901

    gregstoll
    Member

    @kokkieh

    Thanks. I’ve given your link to our developers as well. Maybe you’re doing something differently from the WordPress importer which is allowing yours to work where ours doesn’t.

    Cool. Since their servers moved location I’ve heard that some firewalls may be blocking them, although that seems unlikely to affect y’all…

    #2826902

    gregstoll
    Member

    OK, I’ve got something working. The details and instructions are at

    https://gregstoll.com/ljbackup/ljtowordpress/

    Note that I haven’t had time to set up a web-facing script for this, so you’ll have to email me a file with some information. If you’re uncomfortable with me seeing your posts, you should wait for a better solution from me or the WordPress folks. (I won’t look at the file unless there’s a problem with the script, but you shouldn’t trust random people on the Internet!)

    I used it to convert my LiveJournal to my WordPress and I’m pretty happy with the results!

    @kokkieh – The script that converts between the two formats is linked from that page, in case it’s helpful for y’all. Thanks!

    #2826903

    autojim
    Member

    I can now say that Greg’s solution works very well — grabbed everything off my LJ back to the beginning and it’s ported over to WP without issue.

    I’ve thanked him privately, but here’s a big public thank you, Greg, for taking on the problem, finding a solution, and doing the throughput.

    #2826904

    kokkieh
    Staff

    @gregstoll

    Thank you very much! I’ll ask our devs to take a look as well. I take it we have your permission to use this?

    @autojim

    Thanks for testing and confirming it works.

    #2826905

    kokkieh
    Staff

    To anyone else, as gregstoll very responsibly points out, you shouldn’t just trust anyone on the internet. As we haven’t checked the code (though I have given the script to a developer to look at) we also, as WordPress.com, cannot officially endorse this (yet), but at the moment it looks like the best option to get your content from LJ exported in a format that will work here.

    #2826906

    gregstoll
    Member

    @kokkieh

    Definitely, y’all have my permission to use/adapt any of that code!

The topic ‘import from LiveJournal’ is closed to new replies.