I have a bookstore price-comparison site. In order to keep it updatede - for one of the shops - I have a small php script (100 lines) that take product URL's from a text file and grabs various info about each book - and saves that info in a new CSV formatted .txt file.
It works quite well. I have two issues with it though that I would like to have fixed...
1. If a URL from the text-file full of links to individual book no longer exist (return a 404 error page) the script currently just stop at that line. I have to remove the URL at start the script over. This is very annoying as there are about 2000 URLs to go through - it takes some time. Instead I would like to have the script ignore that URL/page an go on to the next.
2. Sometimes books are on sale, but the script still just grabs the normal price. That's no good. Instead it should check to see if a book is on sale and if so include the sale-price instead of the normal one.
It's important that theses changes are done well and doesn't result in much longer execution times. Right now it take about 45 minutes for the script to go through all 2000 books.
I will send you the script as it is now and a test URLs file with about 20 books. Some on sale and some no longer exsisting and returning a 404 error page.
If you do the job well I would also be interested in hiring you to make more modifications of the script so that it would work with other online bookshops.
I need this done quickly. I have attached the first part of the script in case you would like to see how it looks.