pseudomonas (
pseudomonas) wrote in
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
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.
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
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.

no subject
no subject
no subject
no subject
no subject
no subject
no subject
no subject
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
no subject
no subject
no subject