Socket
Socket
Sign inDemoInstall

vk2json

Package Overview
Dependencies
33
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vk2json

Инструмент для конвертации html-файлов из [архива с выгруженными данными ВКонтакте](https://vk.com/data_protection?section=rules) в машиночитаемый JSON-формат.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vk2json

Инструмент для конвертации html-файлов из архива с выгруженными данными ВКонтакте в машиночитаемый JSON-формат.

Может быть полезно для анализа диалогов (и т.п.) без запросов к API.

Перед использованием необходимо извлечь содержимое архива.

  • ads:
    • geo-points
    • interests
    • offices
    • retargeting
  • apps
  • audio
  • bookmarks
  • comments
  • likes
  • messages
  • other:
    • bans
    • external-contacts
    • support
  • payments
  • photos
  • profile:
    • blacklist
    • documents
    • email-changes
    • friends-idols
    • friends-requests
    • friends
    • gifts
    • market-goods
    • name-changes
    • page-info
    • phone-changes
    • stories
    • subscriptions
  • sessions
  • verification
  • video
  • wall

Использование

$ yarn global add vk2json
$ vk2json /path/to/dir

# Использование без глобальной установки:
$ npx vk2json /path/to/dir

Параметры командной строки

--output, -o

Папка, в которую будут записаны JSON - файлы (по умолчанию - в папке с html будет создана папка json)

--select-peers

Массив peer_id, сообщения которых будут парситься (по умолчанию - все диалоги)

--select

Массив типов данных, которые будут конвертированы из html в json (по умолчанию все возможные) Список возможных парсеров лежит в папке parsers либо в чеклисте выше

Пример: --select ads messages

Примеры

Выгрузка сообщений с пользователем 152199439:

$ vk2json /path/to/dir --select messages --select-peers 152199439
Processing directory "messages"
Parsed 1 conversations
Wrote 1 files to /path/to/dir/json

FAQs

Last updated on 18 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc