-
Notifications
You must be signed in to change notification settings - Fork 3
/
wall_getPosts_parsed.vk
49 lines (49 loc) · 1.38 KB
/
wall_getPosts_parsed.vk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var posts_cnt;
var posts;
var post;
var post_format;
var post_id;
var post_from_id;
// var post_owner_id;
var post_date;
var post_comments_cnt;
var post_likes_cnt;
var post_repost_cnt;
var post_list = [];
var offset_posts = 0;
var run_count = 0;
var iter_count = 1;
while (iter_count > run_count )
{posts = API.wall.get(
{"owner_id":(Args.owner_id),
"domain":(Args.domain),
"offset":(offset_posts),
"count":"100",
"filter":"all",
"extended":"0",
"v":"5.42"}
);
post = posts.items;
post_id = [email protected];
post_from_id = [email protected]_id;
// post_owner_id = [email protected]_id;
post_date = [email protected];
post_comments_cnt = [email protected];
post_comments_cnt = [email protected];
post_likes_cnt = [email protected];
post_likes_cnt = [email protected];
post_repost_cnt = [email protected];
post_repost_cnt = [email protected];
post_format = [(post_id),(post_date),(post_comments_cnt),(post_likes_cnt),(post_repost_cnt),(post_from_id)];
// post_list.push([email protected]);
post_list.push(post_format);
offset_posts = offset_posts + 100;
run_count = run_count + 1;
posts_cnt = posts.count;
};
return {"posts_cnt": posts_cnt,
"run_count":run_count,
"iter_count":iter_count,
"offset_posts": offset_posts,
"posts": post_list};
// return post_list;