|
Posted by Christoph Burschka on 12/08/06 12:55
Mr. Newt schrieb:
> Is there a way to have script check an entire site for pricing and have it
> put that info in a db or spreadsheet? Is this possible in php?
>
>
> Merry Christmas Robert Newton
>
>
Depends on how consistently the price information is displayed, and how
consistent the URLs are.
In the best case (more like a "too good to be true" case) you can always
assume the price will be in a simple piece of html code similar to this:
<div id="price">$9.99</div>
And the pages are all called something like
"/showproduct.php?id=34"
Then you can iterate over "/showproduct.php?id=$i", have PHP fetch each
page, scan it for the price, and write it to the database.
But if these pages are like Amazon, with insanely long and unpredictable
URLs, it's not that easy...
--
CB
Navigation:
[Reply to this message]
|