Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lixxteq/vk-video-extractor

NPM package for extracting VKontakte public videos direct links and downloading them
https://github.com/lixxteq/vk-video-extractor

Last synced: 9 days ago
JSON representation

NPM package for extracting VKontakte public videos direct links and downloading them

Awesome Lists containing this project

README

        

# VK-VIDEO-EXTRACTOR

## Installation

Using NPM:

```bash
npm install git+https://github.com/lixxteq/vk-video-extractor.git
```

Using yarn:

```bash
yarn add git+https://github.com/lixxteq/vk-video-extractor.git
```

## Usage

```js
import Extractor from 'vk-video-extractor';

const ext = new Extractor("https://vk.com/video-206819080_456239059");
// get info about video, including direct url
console.log(await ext.getVideoInfo());
// download video and return download path
console.log(await ext.download())

// download any other resource (document, audio) by direct url
await Extractor.downloadResourceByDirectUrl('https://vk.com/some_document?api=1&no_preview=1')
```