I
I
Islamfon2015-08-12 17:32:27
In contact with
Islamfon, 2015-08-12 17:32:27

How to track new posts from public VK?

I saw a Telegram bot that monitors new posts from the VK public and sends them.
How does he know that a new post has been added and is tracking, or is it done via cUrl using cron?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya, 2015-08-13
@FireGM

https://vk.com/dev/wall.get
Get a wall. See the last 10 posts or 100. See the date of addition, if it is more than the last remembered, add as a new post, report, save the date of the last post. After a minute, repeat (or 3 times per second you can check) if there are any posts with a date greater than your saved one.

R
rhost, 2015-08-12
@hoOstel

https://vk.com/dev/execute
pull the wall of the public, take 1 post and see if the id has changed, if so, then "uradobavilinovypost"
(that's what I said, roughly) )

G
GLISA, 2018-03-23
@GLISA

either use api, or parse - as you say - cron and curl. I use the second method in my notification service. you can even take a ready-made function for parsing here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question