Followup on the API - thataway.pl
Sep. 16th, 2010 11:41 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Thanks for all the help on my last post, it was really helpful & encouraging!
So, draft 1 of http://www.chiark.greenend.org.uk/~adamb/dw-thataway.pl.txt .
It runs through DW posts, finding LJ entries that have already been cross-posted or imported to DW, and for some subset of them based on things like their visibility, date, length, whether they contain polls, and so on, edits them so that their text is commented out (possibly with a snippet of the original post), adding a note saying that the post has been moved to such-and-such a DW post which is thataway. It optionally disables or locks the comments on the LJ posts.
I've tested it on my test account, and it seems to do what it's supposed to over a small number of entries, but more testing is needed; bug reports would be most welcome; also at this stage it'd be useful to know if it works just fine.
It still needs a way of telling which xposting account is which if someone has more than one of them.
I don't know what'd be most use for the community - I can dump it in the wiki or version-control as-is with a do-as-you-will-with-this license, maybe stick a CGI front end on it if anyone wants to host it and there aren't major problems with having a website asking for people's passwords. I don't have much desire to support this long-term once bugs have been ironed out, so am loath to distribute/host it myself.
So, draft 1 of http://www.chiark.greenend.org.uk/~adamb/dw-thataway.pl.txt .
It runs through DW posts, finding LJ entries that have already been cross-posted or imported to DW, and for some subset of them based on things like their visibility, date, length, whether they contain polls, and so on, edits them so that their text is commented out (possibly with a snippet of the original post), adding a note saying that the post has been moved to such-and-such a DW post which is thataway. It optionally disables or locks the comments on the LJ posts.
I've tested it on my test account, and it seems to do what it's supposed to over a small number of entries, but more testing is needed; bug reports would be most welcome; also at this stage it'd be useful to know if it works just fine.
It still needs a way of telling which xposting account is which if someone has more than one of them.
I don't know what'd be most use for the community - I can dump it in the wiki or version-control as-is with a do-as-you-will-with-this license, maybe stick a CGI front end on it if anyone wants to host it and there aren't major problems with having a website asking for people's passwords. I don't have much desire to support this long-term once bugs have been ironed out, so am loath to distribute/host it myself.