D
D
danyfir2018-02-04 14:21:03
PHP
danyfir, 2018-02-04 14:21:03

How to make a parser from VK?

There is a group: https://vk.com/sol_kzn
There is a schedule of events in the group header.
5a76ece5601c6461623704.png
It changes every month and I want to pull this img out with a parser so that it is updated on the site simultaneously with the VK group (so that the customer does not mess with the site, so that everything is automated there).
Please tell me how to implement?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Aksentiev, 2018-02-04
@Sanasol

so on the contrary, you need to do it ...
It's normal to keep a schedule on the site, and in the group, as a bonus, automatically generate a new header.

A
Artem0071, 2018-02-04
@Artem0071

Here you get information about the group
And where 'fields' you specify cover

Q
qwerty, 2018-02-04
@Bapen1k

I don’t know how in php, but in js you can pull out regular expressions. The link to the image you want can be pulled out like this
And then check if the link has changed, if it has changed, then change the picture on the site. You can also check the hash sum of the file, it's more reliable.

A
Akcent Goncesta, 2018-02-04
@Akcent

You can also parse your group of. Vkontakte API. So that's the best thing to do.

D
Dmitry Baskakov, 2018-02-04
@dmitrybascacov

And the easiest way, with the knowledge of regular expressions, is to parse using php: you search for an element by the template and then cut off the excess and as a result you get a clean link, which you can then send anywhere. Well, run every 5 minutes so that it quickly parses and checks if something has changed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question