Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Dmoz - import only one category

Quote Reply
Dmoz - import only one category
HI all,

i want import dmoz directory on my site , but i want only import Italian directory, how can i do?



Regards
Quote Reply
Re: [Ufo2003] Dmoz - import only one category In reply to
Just edit this to suite your category/server;

perl /home/virtual/site1/fst/var/www/cgi-bin/cgi/admin/nph-import.cgi --import RDF --source=/home/virtual/site1/fst/var/www/cgi-bin/content.rdf.u8 --destination="/home/virtual/site1/fst/var/www/cgi-bin/cgi/admin/defs" --create-columns --create-missing-categories --rdf-category="Top/Adult" --rdf-user="Admin" --rdf-add-date="2002-10-01" -- rdf-update

Edit the purple part to containt something like;

Top/Regional/.. (rest of path to Italy category).

Hope that helps Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Dmoz - import only one category In reply to
Sorry but i should lunch this command from Shell?



Regrads
Quote Reply
Re: [Ufo2003] Dmoz - import only one category In reply to
Yes.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Dmoz - import only one category In reply to
Hi sorry

i have set this to:

perl /home/guidacli/public_html/cgi-bin/links/admin/nph-import.cgi --import RDF --source=/home/guidacli/public_html/content.rdf.u8 --destination="/home/guidacli/public_html/cgi-bin/links/admin/defs" --create-columns --create-missing-categories --rdf-category="Top/World/Italiano" --rdf-user="Admin" --rdf-add-date="2002-10-01" -- rdf-update



but when i lunch it from ssh i get

The path and filename to the RDF file that you gave dont exist, or does not have read permission set correctly



My question are, where is the RDF path? maybe Top/world/Italiano? what filename is missing??



thanks
Quote Reply
Re: [Ufo2003] Dmoz - import only one category In reply to
Have you got your content.rdf.u8 file located in the /home/guidacli/public_html/ folder? If not, then you need to download it (200+Mb gzipped, over 1Gb unzipped). People such as myself and Paul do slice files, which are slices of the main content.rdf.u8 file, but in smaller, and more handelable sizes. To get the DMOZ file, go into SSH and type;

wget http://dmoz.org/rdf/content.rdf.u8.gz

Then

gzip -d content.rdf.u8.gz (will take quite a while)

Hope that helps...Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Dmoz - import only one category In reply to
Hi i have lunch your first command and work fine, i forgot the .gz extension on the file name, but now i get this when i lunch unzip process:

TOPIC: Top/Adult/Image_Galleries/Softcore/AVS/CyberAge/Platinum ... skipping

TOPIC: Top/Adult/Image_Galleries/Softcore/AVS/CyberAge/Preferred ... skipping

TOPIC: Top/Adult/Image_Galleries/Softcore/AVS/NetVerifier ... skipping

TOPIC: Top/Adult/Image_Galleries/Softcore/AVS/NetVerifier/Elite ... skipping

TOPIC: Top/Adult/Image_Galleries/Softcore/Free ... skipping

TOPIC: Top/Adult/Image_Galleries/Softcore/Free/A ... Killed

bash-2.05$ 6c6c6c6c

gzip: stdout: Broken pip



what's mean?

thx