A
A
Alexey Napechkin2019-06-12 08:57:05
Drupal
Alexey Napechkin, 2019-06-12 08:57:05

How to display search results from other sites?

Is it possible to make a "trivago" (selection of hotels and prices) for auto parts from a dozen other sites as simply as possible? those. a certain parser... tell me in which direction to read, so that the block of search results of different sites is displayed on one.
So far, only iframe comes to mind, but it seems outdated

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bugagashnik, 2019-06-12
@bugagashnik

If there is no API, then you need to crawl / parse from their sites using selectors (html tags, classes, xpath - which is convenient). I advise you to take a closer look at scrapy (python). Very versatile piece + effective. But here you will need minimal knowledge of python. The difficulty lies in the fact that most likely on these sites you need to fill out some kind of form (again, insert data using selectors). Then send a request (click on a button or see how the browser works and simulate a request). Wait for a response (you won't wait, you just have to assign a larger delay). And then parse the results.

E
Eugene Chefranov, 2019-06-12
@Chefranov

If there is an API for those sites from which you want to pull, then you can use JS or PHP to pull

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question