so i am creating a website.

i need an engine where a product would be typed in, for example 'macbook pro'. Then the engine would gather say 10 websites that sell that, and arrange them in a list according to price. How would i go about doing that?

joe.