Code Monkey home page Code Monkey logo

vivo-dl's Introduction

vivo-dl

A node.js vivo.sx video downloader

Description

vivo-dl is a module that can download .mp4 files from vivo.sx. Just provide a path and some vivo.sx urls and it downloads the videos.

List of features

  • simple
  • asynchronous
  • fast
  • supports typescript

Installation

Using NPM

$ npm i vivo-dl

Using Yarn

$ yarn add vivo-dl

Usage

Just call the vivodl function with a destination folder and an array of URLS and it will download the files to your given destination and then return a Promise<Video[]>.

vivodl('./dest', [
  'https://vivo.sx/1234567890',
  'https://vivo.sx/0987654321',
]).then(videos => {
  console.log(videos);
});

Optional Parameters

  • If you just want to fetch the video source URIs and do not want to download them just provide an empty path

Data

A Video is a data model that contains the following attributes:

{
  filename: string;   // grabs the name of the file uploaded to vivo.sx
  videoUrl: string;   // the source video URL that was embedded in vivo.sx
  vivoUrl: string;    // the vivo.sx url you provided
}

Error-Handling

If the video could not be found or the URL is invalid it will spit out a warning and skip the video.

Contributing

Everyone is welcome to contribute, to help this project.

License

This project is licensed under the MIT License

vivo-dl's People

Contributors

alfagun74 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

001101

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.