The constructor of the VideoScraperCore class.
Optional options: { browserExecutablePath?: string; debug?: boolean; debugScope?: null | string; windowSize?: { width?: number | undefined; height?: number | undefined; } }The BrowserOptions to pass to the instance.
Optional browserThe path to the browser executable. (Default value: '/usr/bin/google-chrome')
Optional debug?: booleanIf true, it will show debug log. (Default value: false)
Optional debugThe scope given to the euberlog debug logger. (Default value: 'VideoScraperCore')
Optional windowThe object that says how big the window size will be. (Default value: { width: 1920, height: 1080 })
Protected afterProtected getReturns the video full screen selector, which is used by the method setVideoToFullScreen to put the video in full screen.
Protected getReturns the video play button selector, which is used by the method playVideo to play the video.
Protected getGets the video duration by parsing the given page. This method can be overridden in case the page's way to display time is not compatible.
The extracted video duration
A browser page (of puppeteer)
A logger instance to write log
Protected getReturns the video duration selector, which is used by the method getVideoDuration to extract the video duration text from the page.
Protected handleGiven the duration text gotten from the page's HTML (e.g. 1:30:23), it returns the duration in milliseconds. This method can be overridden in case the page's time format is not compatible.
The duration in milliseconds.
The duration text gotten from the page's HTML.
Protected playPlays the video by clicking the play button. This method can be overridden in case the page's way to start the video is not compatible.
A browser page (of puppeteer)
A logger instance to write log
Scrapes a video from a BBB conference.
The url of the video to save
The path where the video will be saved. Note that the extension should be webm.
The ScrapingOptions to pass to this method.
Changes the BrowserOptions options.
The new options.
Optional browserThe path to the browser executable. (Default value: '/usr/bin/google-chrome')
Optional debug?: booleanIf true, it will show debug log. (Default value: false)
Optional debugThe scope given to the euberlog debug logger. (Default value: 'VideoScraperCore')
Optional windowThe object that says how big the window size will be. (Default value: { width: 1920, height: 1080 })
Protected setSets the video put the video in fullscreen. This method can be overridden in case the page's way to put the video in fullscreen is not compatible.
A browser page (of puppeteer)
A logger instance to write log
Generated using TypeDoc
The BBBVideoScraper class, that scrapes a video from a "BBB WebKonferenze" and saves it to a file.