jwplayer-scraper
This module helps you get the source URLs of the media that is added to the JW Player in the page/iframes using node.js
Installation
This module can be installed via npm:
$ npm install --save jwplayer-scraper
Usage
var scraper = ;
Functions
scraper.getMediaSources(URL, options)
- URL: URL of the page that needs to be scraped
- options (optional): For now, this can only contain an object with the 'jwplayerFilename' key. If it's not set, it will try to automatically locate the jwplayer.js file. (This is experimental)
var scraper = ; { var sources = await scraper; console;};
or if you want to use it with .then() instead of async/await:
var scraper = ; scraper ;