K
K
kukarekuu2016-11-24 22:12:21
PHP
kukarekuu, 2016-11-24 22:12:21

How to make a search for ALL VKontakte users via the API, without being tied to the owner_id?

I'm trying to do a search on Vkontakte posts, I need the script to go through all the posts on the users' walls and find the desired substring. The wall.get and wall.search methods do not want to work if you do not specify the owner_id, which will narrow the search to one user, which does not solve the problem.
The cycle by owner_id also does not work, although this solution is not the most rational.
The standard news search also returns nothing:
https://vk.com/feed?c%5Bq%5D=SEARCH_STRING§io...
if accessed from PHP:

<?php
$wall = file_get_contents ("https://vk.com/feed?c%5Bq%5D=ИСКОМАЯ_СТРОКА&section=search")
print_r ($wall);
?>

It is clear that data is needed at least those that are open, that are not reposted, that are not "only for friends."

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2016-11-25
@kukarekuu

che, groups decided to stir up for free?

A
Alexander Aksentiev, 2016-11-24
@Sanasol

You are looking for the function "download all content from VK for free, without registration and SMS"
There is no such function there.

K
Kirill Zhilyaev, 2016-11-25
@kirill_782

newsfeed.search - search the news feed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question