Node.js Puppeteer Automation Script to Automatically Download Videos,Image Media Stream From URL to Local Computer Using Javascript Full Project For Beginners

 

 

puppeteer-stream

An Extension for Puppeteer to retrieve audio and/or video streams of a page

Installation

Usage

ES5 import

or ES6 import

Notice: This will only work in headful mode

The method getStream(options) takes the following options

and returns a Promise<Readable>

For a detailed documentation of the options have a look at the HTML5 MediaRecorder Options

Launch

The method launch(options) is just a slightly changed puppeteer launch function to start puppeteer in headful mode with this extension.

Example

Save Stream to File:

Leave a Reply