openload-url

1.0.1 • Public • Published

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());  
});

Package Sidebar

Install

npm i openload-url

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.46 kB

Total Files

5

Last publish

Collaborators

  • poup2804