E
E
Elizaveta Cezurk2020-06-20 12:18:04
PHP
Elizaveta Cezurk, 2020-06-20 12:18:04

How to parse a post from a VK page?

Good afternoon, I had such a whim - to parse a post from my VK page using php.
For example, there is a link to the post, I insert it and after the script copies the text of my post and the picture.
Then it inserts the data into the database.
I don’t understand a little how I can implement this, but I tried to search in search engines about this, but I can’t find anything similar, I decided to ask you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
John Didact, 2020-06-20
@semechki

Isn't it easier to use the VK API for this ???
https://vk.com/dev/wall.getById

P
Pashenka, 2020-06-20
@like-a-boss

1. Send a GET request per page.
2. Parse (parse) its contents using some library that can in DOM
3. Having received the necessary information, do with it what you want.
How to implement all this? Google step by step.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question