PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 03-30-2004, 02:50 AM   #1
lighthouse
Green Mole
 
Join Date: Mar 2004
Posts: 20
Different search depths for different cron jobs

I want to setup cron jobs to do the following:

1) spider a set of URLS every 7 days to a search depth of 2
2) spider a set of URLS every 28 days to a search depth of 5

Can this be done?... Can you specify the search depth paramater in the cron job?...


Also - can I spider 1 particular page of a website (the news page) without spidering the rest of the site (I'm pretty sure this is possible, but just want to confirm!!)


Thanks in advance
Gary
lighthouse is offline   Reply With Quote
Old 03-30-2004, 09:15 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Perhaps try the following.

In spider.php find:
PHP Code:
if ($argc 1) { 
and afterwards put:
PHP Code:
$limit argv[2]; 
Usage: php -f spider.php [option] [number]
where option and number must be specified.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Depth using cron hpg4815 How-to Forum 1 10-02-2006 10:16 AM
cron again xdaniel Bug Tracker 4 05-12-2005 08:33 AM
Indexing via cpanel cron jobs... claudiomet Troubleshooting 1 09-07-2004 05:25 PM
Outsourcing Jobs Charter The Mole Hole 2 03-29-2004 03:05 AM
Cron jobs-Automated Updates siliconkibou How-to Forum 1 12-23-2003 07:51 AM


All times are GMT -8. The time now is 05:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.