A
A
Alexey Koval2016-05-04 21:51:41
PHP
Alexey Koval, 2016-05-04 21:51:41

How to parse elements from a site to a page on your site?

In what ways is it possible to parse site elements (for example, a block of news or traffic / weather from Yandex) and place them as a widget on a page of your site? Similar functionality is implemented on Yandex itself, but it is more in the direction of RSS. I would like some simple solution, almost a dragndrop option.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
ThunderCat, 2016-05-04
@ThunderCat

how to scrape from websites

V
VZVZ, 2016-05-05
@VZVZ

I would like some simple solution, almost a dragndrop option.

This depends on the site. If there is no special API, then it will not work.
Well, obviously, in 2 ways - either to make requests to the site from the back-end (curl, etc.), or from the front-end (JS).
What exactly to choose depends on what is needed and what is possible (it is not always possible from JS - the site's cross-domain policy can easily prohibit this)
You can also try Flash, also a front-end...

A
apolon13, 2016-05-05
@apolon13

simplehtmldom
scraperlab

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question