Gossamer Forum
Home : Products : Gossamer Links : Discussions :

nph-import of DMOZ data

Quote Reply
nph-import of DMOZ data
Does nph-import have to go through EVERY category and skip it before it gets to the category of choice?

In other words.. do I have to watch:
TOPIC: Top/Arts/Music/Bands_and_Artists/C/Cummings,_Burton/Reviews ... skipping
TOPIC: Top/Arts/Music/Bands_and_Artists/C/Cage,_Joel ... skipping
TOPIC: Top/Arts/Music/Bands_and_Artists/C/Carthy,_Eliza ... skipping

for each category in the rdf file before it gets to the category that I am interested in importing??

-Scott
Quote Reply
Re: [scottward] nph-import of DMOZ data In reply to
Unfortunately so. You can speed things up by editing the .rdf file (need a good editor, vi works for us) and cuting out the relevant section (takes about 10 minutes, but saves hours in parsing).

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] nph-import of DMOZ data In reply to
Alex, could you recommend how to cut out unwanted data with vi - I'd be interested in knowing how to do this.
Quote Reply
Re: [RedRum] nph-import of DMOZ data In reply to
Sure,

1. vi content.rdf
2. wait 10 minutes or so while it loads the file.
3. type: /Top\/Category\/I\/Want
4. You should be at the start of what you want.
5. Press V
6. Page down (ctrl-d) and you should be highlighting as you go.
7. Your section now should be highlighted
8. Type :w mycategory.rdf

You should now have a mycategory.rdf file with just the highlighted text.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] nph-import of DMOZ data In reply to
Thanks! I figured if I had to wait I would fall back to the old reliable vi.. elvis is my hero! in this case anyway...

I appreciate your responses... I am thinking about making a plugin for this.. stupid? Tried? done before?

anyway thanks again...

-Scott

Last edited by:

scottward: Nov 2, 2001, 10:21 PM