A
A
Alexander Andropov2020-05-08 10:13:35
PHP
Alexander Andropov, 2020-05-08 10:13:35

How to parse information behind a hidden element?

Good day.
Using cURL, it turns out to parse only the first 5 elements on the site, the rest of the elements are closed under the "Show all" button.
5eb5066d4eb08781487083.png

I'm trying to parse information from Yandex https://yandex.ru/web-maps/covid19 on the left in the information frame.

Can you please tell me how to parse information that is closed and for its appearance you need to click on the element?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-05-08
@LongOf

Find in the source file the script with the config-view class.
Inside it is JSON with all the data.
You need ['covidData']['items'] elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question