Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

openload-url

Poup280412MIT1.0.1

Gets the stream URL from Openload

openload, oload, url, extractor

readme

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