Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.