1.0.1 • Published 5 years ago

openload-url v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

openload-url

This module allows you to retrieve the original stream URL of an Openload video

Installation

This module can be installed via npm:

$ npm i openload-url

Usage

Using async/await:

const Openload = require("openload-url");

(async () => {
    ol = await new Openload().downloadPage("https://openload.co/f/0YLJPTP8118");
    ol.scrape();
    console.log(ol.getUrl())
})();

Using .then()

const Openload = require("openload-url");

new Openload().downloadPage("https://openload.co/f/0YLJPTP8118").then(ol => {
    ol.scrape();
    console.log(ol.getUrl());  
});