S
S
Sergey Nizhny Novgorod2016-03-05 20:08:35
Python
Sergey Nizhny Novgorod, 2016-03-05 20:08:35

How to count likes of reposts in VK?

Hello.
They gave the task:
A contest is being held in contact: Make a repost of the news - get 50 likes.
I need to make a page that will display a list of all the people who reposted and indicate the number of likes on their repost.
If someone works with VK API can tell in which direction to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kirill Romanov, 2016-03-05
@Djaler

Digging into the documentation for VK API

P
Petr Flaks, 2016-03-09
@neluzhin

I never thought that this would be possible. Now I dug into the API - it seems that this really cannot be done humanly. The only method close to your idea at the moment (API version 5.45) is wall.getReposts , and it only returns information about the profiles of the people who made the repost. The list of entries is returned only if the person wrote something during the repost. That is, if 8 people just reposted, and 2 of them reposted and wrote something, then this method will return only 2 posts. This method also reports the number of likes on these same posts.
There are 3 options for you:

  1. To score on the implementation of this tool or hold contests in other formats;
  2. Ask users to mandatory write something to the post they repost;
  3. Write some crazy algorithm that will get a list of reposted users using this method, and then crawl the walls of these users using either the wall.search method or the wall.get method . But this is a perversion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question