Jump to content

Price Comparison Script


lingray

Recommended Posts

Yeah and what makes it worse is I don't really understand PHP. I think the best way that I could do it would be to use google shopping as all the data locations are consistent. However, I'm unsure of where to start.

 

I understand the theory behind it but don't really know how to put it to work. To start with select all the models from our database then dump them to a file then a separate script to put the model into the search bar and pull the price etc.

 

Would this be the correct way of going about it?

This is ridiculous though.

 

He said 'various' sites.

 

So he's going to have to scrape all these sites, which could take some time.

And if a site changes it's html/css code, theres a chance it'll break.

 

Yeah and what makes it worse is I don't really understand PHP. I think the best way that I could do it would be to use google shopping as all the data locations are consistent. However, I'm unsure of where to start.

 

I understand the theory behind it but don't really know how to put it to work. To start with select all the models from our database then dump them to a file then a separate script to put the model into the search bar and pull the price etc.

 

Would this be the correct way of going about it?

 

That would work.

 

then you run a loop that searches the site for each model.

 

Most likely the results of the sites will be shown in different pages (pagination). that would be the hardest part to overcome, i think.

 

 

This is ridiculous though.

 

Without access, there really isn't any other way...  cURL or file_get_contents and regex or an xml parser.

 

He said 'various' sites.

 

Yes, I know.

 

And if a site changes it's html/css code, theres a chance it'll break.

 

Again, without access to their information that's a risk he'll have to take.

 

then you run a loop that searches the site for each model.

 

Most likely the results of the sites will be shown in different pages (pagination). that would be the hardest part to overcome, i think.

 

It all depends on their structure.  Most likely you're going to have to use cURL.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.