Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konard/vk-export
https://github.com/konard/vk-export
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/konard/vk-export
- Owner: Konard
- License: unlicense
- Created: 2023-12-16T21:07:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-17T01:29:22.000Z (11 months ago)
- Last Synced: 2024-10-10T13:36:09.889Z (28 days ago)
- Language: Rust
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vk-export
## Prerequisites
- Node.js
- npm## Installation
1. Clone this repository:
```bash
git clone https://github.com/Konard/vk-export
```2. Go to the cloned project's folder:
```bash
cd vk-export
```3. Install the dependencies:
```bash
npm ci
```This installs all necessary modules, including `jsdom`, `commander`, `luxon` and `iconv`.
## VK Private Messages Parser
This command line tool parses exported VK private messages in HTML format and converts them to a JSON file.
### Usage
1. Navigate to the project folder if you haven't:
```bash
cd vk-export
```2. Run the tool:
JS version:
```bash
node private-messages-parser.js -s path_to_source.html [-t path_to_target.json]
```
Rust version:
```bash
cd rust
cargo run -- -s path_to_source.html [-t path_to_target.json]
```Replace `path_to_source.html` and (optionally) `path_to_target.json` with the paths of your source HTML file and the target .json file. If you don't specify a target JSON file, the program will create one with the same name as your source file.
```
Note: The `-t` option for specifying target file is optional.
```This runs the script and saves the parsed messages as a JSON file.