UNPKG

openload-url

Version:
33 lines (25 loc) 645 B
# openload-url This module allows you to retrieve the original stream URL of an Openload video ## Installation This module can be installed via npm: ```sh $ npm i openload-url ``` ## Usage Using async/await: ```js const Openload = require("openload-url"); (async () => { ol = await new Openload().downloadPage("https://openload.co/f/0YLJPTP8118"); ol.scrape(); console.log(ol.getUrl()) })(); ``` Using .then() ```js const Openload = require("openload-url"); new Openload().downloadPage("https://openload.co/f/0YLJPTP8118").then(ol => { ol.scrape(); console.log(ol.getUrl()); }); ```