Description Usage Arguments Details Value Author(s) References Examples
Returns a data.frame with publicly available information about posts/replies that mention a query string.
1 | searchUserWall(user_id, query, access_token, verbose = FALSE)
|
user_id |
A numeric user ID. Available from the user's page (see Details). |
query |
A string to search on a user's page. |
access_token |
Your access token (see ?makeAccessToken). |
verbose |
Boolean (default: FALSE), whether information about scraping iterations should be printed. |
Many users have their ID as part of their URL address (e.g. https://vk.com/idUSERID, where USERID is a sequence of numbers). In the event users have screen names that do not show their ID in the URL, one can access them by clicking on the user's post (or photo, video, etc.): the post will open with a new URL of the form https://vk.com/SCREENNAME?w=wall-USERID_POSTID). Pass USERID (without the minus sign in front of it) to the function call.
A data.frame with columns:
object_id |
A numeric ID of a post or reply mentioning the query string. |
from_user_id |
A numeric user ID who wrote the post or reply. |
user_id_wall |
A numeric ID of the user on whose wall the post or reply was made. |
date |
Date. |
date_POSIXct |
POSIX date (number of seconds since January 1, 1970). |
post_type |
Post or reply. |
to_post_id |
For replies: a numeric ID of the post the reply replies to. NA for posts. |
text |
Text mentioning the query string. |
comments_count |
Number of comments the post/reply received. |
likes_count |
Number of likes the post/reply received. |
reposts_count |
Number of reposts the post/reply received. |
views_count |
Number of views the post/reply received. |
Denis Stukal denis.stukal@nyu.edu
VK API Methods: Wall (https://vk.com/dev/wall.search)
1 2 3 4 5 6 7 8 | ## Not run:
mytoken = 'XXXXXXXXXXXXXX'
userid = AAAAAAAA
myquery = 'Obama'
dat <- searchUserWall(user_id = userid, query = myquery, access_token = mytoken)
str(dat)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.