S
S
slon07062021-02-14 19:44:35
Web development
slon0706, 2021-02-14 19:44:35

How to get event data from leader-id?

I need to get data about the time and place of the event from leader-id.ru. The leader-id has events displayed on dynamic pages using nuxt.js. Is there a way to get data from source files or a rendered page? It is desirable to do this without using WebDriver.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2021-02-14
@lolzqq

Opened the source code of the page https://leader-id.ru/events
Text data about dates is displayed in a container <div class="app-card-event__date">
Links to pages in containers

<a href="/events/182694" class="app-card-event__link"> Маркетинговый интенсив </a>

The place of the event lies in the container
<div class="app-card-event__location"> Троицк, Точка кипения - Троицк </div>

In PHP, the file_get_contents() or curl function will help.
Next, parsing to search for text inside the indicated containers using regular expressions.
Instead of PHP, you can do this on node.js using similar methods.
2MMljsr38cM.jpg?size=646x371&quality=96&proxy=1&sign=5e19afb187cd2eba52b49a6fcadecdd5&type=album

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question