Jump to content

Make a little robot to check link validity


jwwceo

Recommended Posts

I have a site which indexes t-shirts and make it easy to find shirts from many different stores at the same time. Each shirt has a link in the database. I want a way to maybe run a cron job once a week or so to pull all the links from the database and make sure they still work, in case a product has been discontinued. I am thinking there will have to be some kind of criteria to verify that the page the robot surfs to is still a valid product page...for example an expired product page may simply default to that sites homepage. So it would still return a page...but the shirt is still expired.

 

Any ideas how to approach this or which functions to use.

 

I have no idea really.

 

James

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.