Searching a search ????!!!

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
kleptomania
Forum Newbie
Posts: 8
Joined: Mon Mar 22, 2004 9:03 am

Searching a search ????!!!

Post by kleptomania »

OK,

I want to be able to allow a user to enter a variable into my site and then my site go off and search several others for the result. ie

enter a dvd name

my site goes to play.com, cd-wow.com, tesco.com etc etc kinda like kellkoo and pricerunner do. Is their a script for this or will i require knowledge of the targets coding and databases?

Cheers
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

all you really need is to fake a user on their site searching for something, pull the results and reformat all the data. First thing I'd do is analyze their search <form> they supply in their html. Then use [php_man]cURL[/php_man] to fake a browser, and finally a bunch of regex to filter and convert their content into the local display format.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Used to manage an online shop where we provided a product list file for download for price comparison sites: your target sites might have something similar which you can access?
Post Reply