Page 1 of 1

Need help in php web search

Posted: Mon May 07, 2007 1:12 am
by Titus2go
To php programmers,

Hi all, This is Titus Cheng.

I got a problem here and I still can't find the answer, I hope someone can help me with this.

I want to do a search script using php. What it does is it will go out to certain website I specify and collect certain information from them.

So let's say I want to know the price of a shoe and I know several website that are selling this shoe. So my search script will go to these websites and just collect the information about the price and display it in a table.

I am not sure where to start, can anyone help me with this. I can't find examples to learn from...

Posted: Tue May 08, 2007 1:05 am
by neel_basu
file_get_contents() on those Website use regex to get links (e.g. <a href="http://site.com/shoes") that contains shoes and grab the texts that contain Shoes.

Posted: Tue May 08, 2007 6:02 pm
by Titus2go
Hey neel_basu,

can you give me a more specific example?