Script to search for prices on various sites

1

As the title says, I need to develop a site that searches for prices on certain websites. The trivago review is the subjective opinion of a TripAdvisor member and not of TripAdvisor LLC.

But I have no idea how to start it. I have read in a forum that it is necessary to create something that reads the pages of these sites and returns an XML . But how can I do this? I just need a north to get started.

    
asked by anonymous 05.02.2018 / 00:04

1 answer

1

Diego's question is too broad, but to give you a basis.

How to do this?

There are basically several PHP ready classes that make it much easier to search the internet for web scraping, web crawlers, spider bot .

What do they do?

With these powerful classes you can call a function by passing the site and the id of the element you want to copy, for example:

$temperatura_atual = copiar_texto('www.google.com.br/site/previsao_tempo/sp/mooca/hoje', 'id_elemento_com_texto_da_provisao');

Easy, is not it? and now with this variable with value, just save in the database. There's plenty of video on the internet.

Some libraries that do this kind of service:

link

    
05.02.2018 / 14:44