vk-subs-activity
Version:
Count activity of VK group subscribers, sum up and convert to points
672 lines (671 loc) • 20.4 kB
JavaScript
module.exports = [{
id: 132585,
from_id: -147845620,
owner_id: -147845620,
date: 1545987701,
marked_as_ads: 0,
post_type: 'post',
text: 'Какие композиции слушают чаще всего в VK Music и мобильном приложении BOOM? Узнайте с помощью Чарта ВКонтакте, который появился в музыкальных рекомендациях. В Чарте вы увидите 200 самых популярных треков, которые отсортированы по количеству прослушиваний. Рейтинг обновляется каждый день — Вы легко сможете следить за музыкальными трендами. Посмотрите, какой трек возглавляет Чарт прямо сейчас: vk.com/music',
is_pinned: 1,
attachments: [{
type: 'photo',
photo: {
id: 456249998,
album_id: -7,
owner_id: -147845620,
user_id: 100,
sizes: [{
type: 'm',
url: 'https://sun1-10.u...5fe/dX6DXlWAcus.jpg',
width: 130,
height: 71,
}, {
type: 'o',
url: 'https://sun1-13.u...602/4Xk1HY278EE.jpg',
width: 130,
height: 87,
}, {
type: 'p',
url: 'https://sun1-13.u...603/UUzwW_0BiCM.jpg',
width: 200,
height: 133,
}, {
type: 'q',
url: 'https://sun1-6.us...604/__U2WW62RDs.jpg',
width: 320,
height: 213,
}, {
type: 'r',
url: 'https://sun1-15.u...605/HzWyhDLztaM.jpg',
width: 510,
height: 340,
}, {
type: 's',
url: 'https://sun1-11.u...5fd/e82bZ6M1oeE.jpg',
width: 75,
height: 41,
}, {
type: 'x',
url: 'https://sun1-8.us...5ff/y1jXAIQxbGQ.jpg',
width: 604,
height: 329,
}, {
type: 'y',
url: 'https://sun1-4.us...600/JgwJv-d852E.jpg',
width: 807,
height: 440,
}, {
type: 'z',
url: 'https://sun1-3.us...601/KVx53G5-dJg.jpg',
width: 1276,
height: 696,
}],
text: '',
date: 1547456585,
access_key: '020e935d5e54499b34',
},
}],
post_source: {
type: 'vk',
},
comments: {
count: 299,
can_post: 1,
groups_can_post: true,
},
likes: {
count: 1518,
user_likes: 0,
can_like: 1,
can_publish: 1,
},
reposts: {
count: 103,
user_reposted: 0,
},
views: {
count: 1417615,
},
is_favorite: false,
}, {
id: 140824,
from_id: -147845620,
owner_id: -147845620,
date: 1548691682,
marked_as_ads: 0,
post_type: 'post',
text: 'Музыкальная редакция VK Music приглашает вас окунуться в ностальгию по нулевым. Из колонок бумбоксов и в наушниках CD-плеера нам пели короли дискотек O-Zone, тогда ещё 3D-Глюкoza, молодой и дерзкий Robbie Williams. А кто ваши герои нулевых? Слушайте и вспоминайте.',
attachments: [{
type: 'audio_playlist',
audio_playlist: {
id: 706,
owner_id: -147845620,
type: 0,
title: 'Вернуться в нулевые',
description: '',
genres: [],
count: 25,
is_following: false,
followers: 6094,
plays: 362973,
create_time: 1548370546,
update_time: 1548370546,
audios: [{
id: 456256878,
owner_id: -147845620,
artist: 'O-Zone',
title: 'Dragostea Din Tei',
duration: 215,
date: 1548370546,
url: 'https://cs1-73v4....3hZS2gUJbqPu3Ai_t9k',
is_hq: true,
track_code: 'dab829cebYoNSlZGoQsK6eAM1-oa46m2akVI8fxgRmo',
is_explicit: false,
main_artists: [{
name: 'O-Zone',
id: '4995940037621654178',
domain: '4995940037621654178',
}],
}, {
id: 456256879,
owner_id: -147845620,
artist: 'Moby',
title: 'Lift Me Up',
duration: 197,
date: 1548370546,
url: 'https://cs1-59v4....aZu5bhqLqUN9RM625QU',
is_hq: true,
track_code: '8d35b675eqn6S4fLDBYWTfYurCFuBRrMZ0nxJcyK-B8',
is_explicit: false,
main_artists: [{
name: 'Moby',
id: '7652620659159174765',
domain: '7652620659159174765',
}],
}, {
id: 456256880,
owner_id: -147845620,
artist: 'Timo Maas',
title: 'First Day',
duration: 249,
date: 1548370546,
url: 'https://cs1-74v4....qpGENUTfoggCrco4g7E',
is_hq: true,
track_code: 'abeef666n1IPnQepKD_HzuJKnzmfORrP_lhCGDiHFDo',
is_explicit: false,
main_artists: [{
name: 'Timo Maas',
id: '412874830803771497',
domain: '412874830803771497',
}],
subtitle: 'Extended Version',
}],
photo: {
photo_34: 'https://sun1-12.u...373/RtHRn0CcYdE.jpg',
photo_68: 'https://sun1-13.u...371/WYNtYXCiyUQ.jpg',
photo_135: 'https://sun1-12.u...36f/7md-vWaE_ao.jpg',
photo_270: 'https://sun1-3.us...36c/Ti4z5TcQEWQ.jpg',
photo_300: 'https://sun1-4.us...36a/SHfrMzX8ePU.jpg',
photo_600: 'https://sun1-7.us...367/0f8YvbfKB1Q.jpg',
width: 300,
height: 300,
},
access_key: '614d6e85fbda816850',
album_type: 'playlist',
},
}],
post_source: {
type: 'vk',
},
comments: {
count: 14,
can_post: 1,
groups_can_post: true,
},
likes: {
count: 172,
user_likes: 0,
can_like: 1,
can_publish: 1,
},
reposts: {
count: 23,
user_reposted: 0,
},
views: {
count: 45929,
},
is_favorite: false,
}, {
id: 140774,
from_id: -147845620,
owner_id: -147845620,
date: 1548683264,
marked_as_ads: 0,
post_type: 'post',
text: 'Джулия Майклс рассказала, как бороться с апатией в новом мини-альбоме Inner Monologue Part 1. Певицу поддержала подруга Селена Гомес. Они давно дружат и работают вместе. Джулия написала часть песен для Гомес, а также композиции для Деми Ловато, Джастина Бибера, Fifth Harmony и других. Inner Monologue Part 1 — это откровенный рассказ о сложностях. Но слушать его легко: Джулия гармонично оформила свои тягостные мысли воздушной музыкой.',
attachments: [{
type: 'audio_playlist',
audio_playlist: {
id: 4226575,
owner_id: -2000226575,
type: 1,
title: 'Inner Monologue Part 1',
description: '',
genres: [{
id: 1,
name: 'Поп',
}],
count: 6,
is_following: false,
followers: 5631,
plays: 78408,
create_time: 1548050574,
update_time: 1548299833,
audios: [{
id: 47943273,
owner_id: -2001943273,
artist: 'Julia Michaels feat. Selena Gomez',
title: 'Anxiety',
duration: 210,
date: 1548299833,
url: 'https://cs1-61v4....qYoa8ES5huNwd6i8Y5o',
is_hq: true,
track_code: 'd05c230f2ETjGvJ939iPhZ0pjGk0Ez0ULeuC7snDYdRKJGFf9A',
is_explicit: true,
main_artists: [{
name: 'Julia Michaels',
id: '2818165050164835121',
domain: '2818165050164835121',
}],
featured_artists: [{
name: 'Selena Gomez',
id: '6395824180720319971',
domain: '6395824180720319971',
}],
}, {
id: 47943272,
owner_id: -2001943272,
artist: 'Julia Michaels',
title: 'Into You',
duration: 192,
date: 1548299833,
url: 'https://cs1-67v4....OVjaUsAEaPJzysSK8GY',
is_hq: true,
track_code: 'ddc41facYIP3b1ZFmGirusDwX-fZ_rMh4njzM4phFO8afyZHxA',
is_explicit: false,
main_artists: [{
name: 'Julia Michaels',
id: '2818165050164835121',
domain: '2818165050164835121',
}],
}, {
id: 47943271,
owner_id: -2001943271,
artist: 'Julia Michaels',
title: 'Happy',
duration: 191,
date: 1548299833,
url: 'https://cs1-73v4....MTiBZWZx68H8Z2Vtcjc',
is_hq: true,
track_code: 'eb4f7905AJcIcNL6vfB2r0bVEy4LxB-oXdQrKXCh4j8ycmphZg',
is_explicit: true,
main_artists: [{
name: 'Julia Michaels',
id: '2818165050164835121',
domain: '2818165050164835121',
}],
}],
year: 2019,
photo: {
photo_34: 'https://sun1-6.us...22e/1oQhXsFYF0c.jpg',
photo_68: 'https://sun1-6.us...22c/uglSauu2Bh0.jpg',
photo_135: 'https://sun1-1.us...22a/2adQRDME1v8.jpg',
photo_270: 'https://sun1-10.u...227/xnYJ5L53f4s.jpg',
photo_300: 'https://sun1-16.u...225/ozPVGSlfVmQ.jpg',
photo_600: 'https://sun1-15.u...222/nEo8xbGUd0s.jpg',
width: 300,
height: 300,
},
access_key: 'ea29b955e77d177264',
is_explicit: true,
main_artists: [{
name: 'Julia Michaels',
id: '2818165050164835121',
domain: '2818165050164835121',
}],
album_type: 'main_feat',
},
}, {
type: 'link',
link: {
url: 'https://m.vk.com/...85aa22b70237b0d8f49',
title: 'Julia Michaels',
caption: 'm.vk.com',
description: '',
photo: {
id: 456239021,
album_id: -102,
owner_id: -2000931206,
user_id: 100,
sizes: [{
type: 'm',
url: 'https://pp.userap...e14/MQonWe5Jzi0.jpg',
width: 360,
height: 180,
}, {
type: 'x',
url: 'https://pp.userap...e15/iRWYxNpYZnw.jpg',
width: 720,
height: 360,
}, {
type: 'y',
url: 'https://pp.userap...e16/V3LM9YfJmU4.jpg',
width: 1080,
height: 540,
}, {
type: 'w',
url: 'https://pp.userap...e17/ynqP3iG1Wkk.jpg',
width: 1440,
height: 720,
}],
text: '',
date: 1548543766,
},
},
}],
post_source: {
type: 'vk',
},
comments: {
count: 19,
can_post: 1,
groups_can_post: true,
},
likes: {
count: 155,
user_likes: 0,
can_like: 1,
can_publish: 1,
},
reposts: {
count: 10,
user_reposted: 0,
},
views: {
count: 60630,
},
is_favorite: false,
}, {
id: 140715,
from_id: -147845620,
owner_id: -147845620,
date: 1548669325,
marked_as_ads: 0,
post_type: 'post',
text: 'Рок-группа Rival Sons выпустила шестой альбом Feral Roots. В этом году калифорнийскому коллективу исполняется 10 лет. Начав с разогрева у Black Sabbath, музыканты собрали свою аудиторию поклонников атмосферного тяжёлого рока. Над Feral Roots работал обладатель Грэмми продюсер Дейв Кобб. Блюзовый подход к суровому стилю делает Rival Sons особенными — послушайте.',
attachments: [{
type: 'audio_playlist',
audio_playlist: {
id: 4230528,
owner_id: -2000230528,
type: 1,
title: 'Feral Roots',
description: '',
genres: [{
id: 2,
name: 'Рок',
}],
count: 11,
is_following: false,
followers: 2301,
plays: 15252,
create_time: 1548149699,
update_time: 1548149699,
audios: [{
id: 47966262,
owner_id: -2001966262,
artist: 'Rival Sons',
title: 'Do Your Worst',
duration: 210,
date: 1548150107,
url: 'https://cs1-33v4....uU4Ad52pg5KzYQWmq6Q',
is_hq: true,
track_code: '9700d8a1hgUmG-lRd6PVW6pou7qW8kyu8j1Ip61_3cm_nc_KFg',
is_explicit: false,
main_artists: [{
name: 'Rival Sons',
id: '4690554541369711356',
domain: '4690554541369711356',
}],
}, {
id: 47966261,
owner_id: -2001966261,
artist: 'Rival Sons',
title: 'Sugar on the Bone',
duration: 183,
date: 1548150107,
url: 'https://cs1-60v4....DkHRyd0tcT9x4LD62mk',
is_hq: true,
track_code: '092a901asaww5eNTXox07H5y-juWXjqnPJfehGu6CY2r_2y3TQ',
is_explicit: false,
main_artists: [{
name: 'Rival Sons',
id: '4690554541369711356',
domain: '4690554541369711356',
}],
}, {
id: 47966260,
owner_id: -2001966260,
artist: 'Rival Sons',
title: 'Back In The Woods',
duration: 213,
date: 1548150107,
url: 'https://cs1-71v4....ve_w2zhXDBY96VQfFFQ',
is_hq: true,
track_code: '136b0d888678fmuZe0jEX9QWRH8i1eQbk8dENlW3cqe-VaC38g',
is_explicit: false,
main_artists: [{
name: 'Rival Sons',
id: '4690554541369711356',
domain: '4690554541369711356',
}],
}],
year: 2019,
photo: {
photo_34: 'https://sun1-6.us...fcb/86SspevW9NE.jpg',
photo_68: 'https://sun1-17.u...fc9/d8Q_m4Qkm54.jpg',
photo_135: 'https://sun1-4.us...fc7/nwDmousLZ5k.jpg',
photo_270: 'https://sun1-19.u...fc4/aXsuCttK_HE.jpg',
photo_300: 'https://sun1-19.u...fc2/3sSd9Z-_mic.jpg',
photo_600: 'https://sun1-18.u...fbf/KejhhtEM6ZU.jpg',
width: 300,
height: 300,
},
access_key: '50ce8441d50ecf2f28',
is_explicit: true,
main_artists: [{
name: 'Rival Sons',
id: '4690554541369711356',
domain: '4690554541369711356',
}],
album_type: 'main_only',
},
}, {
type: 'link',
link: {
url: 'https://m.vk.com/...030eb3b70200917392e',
title: 'Rival Sons',
caption: 'm.vk.com',
description: '',
photo: {
id: 456239021,
album_id: -102,
owner_id: -2000594018,
user_id: 100,
sizes: [{
type: 'm',
url: 'https://sun1-1.us...682/PZuse87U7i0.jpg',
width: 360,
height: 180,
}, {
type: 'w',
url: 'https://sun1-4.us...685/_OCXrqp5I0Q.jpg',
width: 1440,
height: 720,
}, {
type: 'x',
url: 'https://sun1-19.u...683/4pCeaDYOJ8k.jpg',
width: 720,
height: 360,
}, {
type: 'y',
url: 'https://sun1-20.u...684/tUOUOUmCons.jpg',
width: 1080,
height: 540,
}],
text: '',
date: 1548417785,
},
},
}],
post_source: {
type: 'vk',
},
comments: {
count: 15,
can_post: 1,
groups_can_post: true,
},
likes: {
count: 198,
user_likes: 0,
can_like: 1,
can_publish: 1,
},
reposts: {
count: 16,
user_reposted: 0,
},
views: {
count: 69812,
},
is_favorite: false,
}, {
id: 140597,
from_id: -147845620,
owner_id: -147845620,
date: 1548593040,
marked_as_ads: 0,
post_type: 'post',
text: 'Британские электронщики Rudimental представляют третий студийный альбом Toast to our Differences. В гостях Tom Walker, RAYE, Major Lazer, Rita Ora, Anne-Marie и много других музыкантов, повлиявших на творчество Rudimental. Этим альбомом коллектив празднует разнообразие своей музыки и приглашает на вечеринку всех слушателей. vk.com/artist/rudimental',
attachments: [{
type: 'audio_playlist',
audio_playlist: {
id: 4230963,
owner_id: -2000230963,
type: 1,
title: 'Toast to our Differences',
description: '',
genres: [{
id: 1,
name: 'Поп',
}, {
id: 6,
name: 'Танцевальная',
}],
count: 16,
is_following: false,
followers: 2947,
plays: 56849,
create_time: 1548161264,
update_time: 1548161264,
audios: [{
id: 47968726,
owner_id: -2001968726,
artist: 'Rudimental feat. Shungudzo, Protoje, Hak Baker',
title: 'Toast to our Differences (feat. Shungudzo, Protoje & Hak Baker)',
duration: 254,
date: 1548161759,
url: 'https://cs1-32v4....qHjQDrOjiEUtJYjGEIc',
is_hq: true,
track_code: '75d5aac2Q2YcUa8-fcK8ANGsqyiRnzCdi7Xlez41HGVnBjxAuQ',
is_explicit: false,
main_artists: [{
name: 'Rudimental',
id: '5324476807082519590',
domain: '5324476807082519590',
}],
featured_artists: [{
name: 'Shungudzo',
id: '3969132145010571165',
domain: '3969132145010571165',
}, {
name: 'Protoje',
id: '8757884117225695644',
domain: '8757884117225695644',
}, {
name: 'Hak Baker',
id: '5908078234811314708',
domain: '5908078234811314708',
}],
}, {
id: 47968725,
owner_id: -2001968725,
artist: 'Rudimental, Major Lazer feat. Anne-Marie, Mr Eazi',
title: 'Let Me Live (feat. Anne-Marie & Mr Eazi)',
duration: 205,
date: 1548161759,
url: 'https://cs1-64v4....mBb8qeFnISUurSK1-XM',
is_hq: true,
track_code: '0a3c283eirkQDFu3wuLg-5zBQnjPAgoKq24sx0akWpNtjoCPvA',
is_explicit: false,
main_artists: [{
name: 'Rudimental',
id: '5324476807082519590',
domain: '5324476807082519590',
}, {
name: 'Major Lazer',
id: '582359739454057296',
domain: '582359739454057296',
}],
featured_artists: [{
name: 'Anne-Marie',
id: '313759640627391837',
domain: '313759640627391837',
}, {
name: 'Mr Eazi',
id: '1279679973738817134',
domain: '1279679973738817134',
}],
}, {
id: 47968724,
owner_id: -2001968724,
artist: 'Rudimental feat. Jess Glynne, Chronixx',
title: 'Dark Clouds (feat. Jess Glynne & Chronixx)',
duration: 268,
date: 1548161759,
url: 'https://cs1-40v4....-YWZn2_f5oSUfJDybNE',
is_hq: true,
track_code: 'd6f7476dVjUUG_vRz24QMfTFoTS7XxUto52ayqQlQmK8U69gng',
is_explicit: false,
main_artists: [{
name: 'Rudimental',
id: '5324476807082519590',
domain: '5324476807082519590',
}],
featured_artists: [{
name: 'Jess Glynne',
id: '6438470339835937179',
domain: '6438470339835937179',
}, {
name: 'Chronixx',
id: '4429224866515814982',
domain: '4429224866515814982',
}],
}],
year: 2019,
photo: {
photo_34: 'https://sun1-2.us...7f0/ibYeJ8-NFgI.jpg',
photo_68: 'https://sun1-3.us...7ee/u4TNxlP-tmo.jpg',
photo_135: 'https://sun1-12.u...7ec/Ww-V0PXcaqc.jpg',
photo_270: 'https://sun1-1.us...7e9/_-C8DAkWG-w.jpg',
photo_300: 'https://sun1-10.u...7e7/aeDMDObOUEo.jpg',
photo_600: 'https://sun1-3.us...7e4/Lc-BAs37z_c.jpg',
width: 300,
height: 300,
},
access_key: 'ef68be8286eb7de093',
subtitle: 'Deluxe',
is_explicit: false,
main_artists: [{
name: 'Rudimental',
id: '5324476807082519590',
domain: '5324476807082519590',
}],
album_type: 'main_feat',
},
}],
post_source: {
type: 'vk',
},
comments: {
count: 28,
can_post: 1,
groups_can_post: true,
},
likes: {
count: 217,
user_likes: 0,
can_like: 1,
can_publish: 1,
},
reposts: {
count: 23,
user_reposted: 0,
},
views: {
count: 134329,
},
is_favorite: false,
}];