Idea for Memories Importer
Oct. 24th, 2010 08:38 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
OK, since I've had this idea ever since importing my entries from LJ to DW, I'm memorializing it. Anyone who takes the design and runs with should give me kudos or something.
Open memories page for user X on LJ and open DW db connection to user X' account
Scan each memory keyword/category on page.
For each, click and load LJ page for that memory, retaining the keyword/category (M)
Scan each line/memory on memories page for that M,
if line scanned is date/title and link to user X's LJ page (so, a self-reference memory)
search DW db for same date/title for user X' to see if imported into DW
if found, add memory under same keyword/category(ies) M on DW.
if date/title and link to a non-LJ page (so, some external site)
add memory under same keyword/category(ies) M on DW.
if date/title and link to a non-self LJ page (so, some other LJ)
scan for username of that LJ to see if same user on DW.
if found, open DW db connection to that user's account and look for a matching entry (see if they imported their LJ, including that entry, to DW)
if match found, add memory to that imported DW page.
(in the alternative, spider that user's LJ, if you don't have access to their db contents, for matching date/title from their import, and then add memory of that imported DW page.)
Given that it's been this much time and I have yet to familiarize myself with the devkit for DW, my writing this tool is very unlikely.
Open memories page for user X on LJ and open DW db connection to user X' account
Scan each memory keyword/category on page.
For each, click and load LJ page for that memory, retaining the keyword/category (M)
Scan each line/memory on memories page for that M,
if line scanned is date/title and link to user X's LJ page (so, a self-reference memory)
search DW db for same date/title for user X' to see if imported into DW
if found, add memory under same keyword/category(ies) M on DW.
if date/title and link to a non-LJ page (so, some external site)
add memory under same keyword/category(ies) M on DW.
if date/title and link to a non-self LJ page (so, some other LJ)
scan for username of that LJ to see if same user on DW.
if found, open DW db connection to that user's account and look for a matching entry (see if they imported their LJ, including that entry, to DW)
if match found, add memory to that imported DW page.
(in the alternative, spider that user's LJ, if you don't have access to their db contents, for matching date/title from their import, and then add memory of that imported DW page.)
Given that it's been this much time and I have yet to familiarize myself with the devkit for DW, my writing this tool is very unlikely.