pseudomonas: My rat is confused by technology (technology)
pseudomonas ([personal profile] pseudomonas) wrote in [site community profile] dw_dev2010-09-09 03:24 pm
Entry tags:

DW Perl module client

Does LJ::Simple work reliably with Dreamwidth? If not, is there a comparable perl module that does? (I'd rather rely on someone else's testing than conduct my own, which is likely to be more slipshod)

Also (and relatedly), is there a way that given a DW entry that's been either imported from, or crossposted to, LJ, I can get (programmatically) the ID or URL of the LJ entry, without resorting to comparing timestamps and post contents?

ETA: if there's no Perl thing suitable, does anyone have any ideas for Java packages that would do the same?

(x-posted from [community profile] perl, where I got suggestions to try here)

ETA: http://www.chiark.greenend.org.uk/~adamb/dw-thataway.pl.txt is the current state of the script. I've tested it on a small test journal and it seems to do what it's supposed to do. If anyone's brave enough to test it on real-world data and let me have any bug reports, that'd be wonderful.
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2010-09-10 12:46 pm (UTC)(link)
There aren't that many client packages for the Dreamwidth/LiveJournal protocols, sadly...
LJ::Simple might ( the xpost data might get in the way -- need to make a bug to fix that ) work, but it and the flat protocol itself are the biggest piece of crap ever.

Probably the *best* way to get all entries on ones Dreamwidth is to follow the flow used by the entry importer ( there are so many weird glitches with syncitems-based fetching, but I think we've worked around most of them )

call_xmlrpc and xmlrpc_call_helper from http://hg.dwscoalition.org/dw-free/file/518b72120000/cgi-bin/DW/Worker/ContentImporter/LiveJournal.pm

as well as lines 110 to 167 and lines 188 through 387 of http://hg.dwscoalition.org/dw-free/file/518b72120000/cgi-bin/DW/Worker/ContentImporter/LiveJournal/Entries.pm

The source URL for imports can be found inside the import_source logprop
The xpost details can be found in a Storable'd hash under the xpostdetail logprop
pseudomoans: (Default)

[personal profile] pseudomoans 2010-09-12 04:40 pm (UTC)(link)
The xpost details (when thawed) seem to be keyed on an integer that's presumably the id of the account being used. Is there a way of finding which account goes with which integer?