Makepad-fr / fbjs

Tooling that automates your Facebook interactions.
https://www.npmjs.com/package/@makepad/fbjs
GNU General Public License v3.0
63 stars 24 forks source link

Scrapping videos from Facebook #34

Closed iMrDJAi closed 2 years ago

iMrDJAi commented 3 years ago

I been searching and I found this browser API: captureStream(). It allows you to capture stream from html video/audio/canvas elements:

var video = document.querySelector('video')
//Capture a video stream in 30 FPS
var stream = video.captureStream(30)

This implementation can be used to scrape Facebook videos simply by recording the captured stream using the MediaRecorder browser api.

kaanyagci commented 3 years ago

Hi @iMrDJAi ,

Thank you for you feedback. I placed in P2 phase. Any contributions are more than welcome

iMrDJAi commented 3 years ago

Hi @iMrDJAi ,

Thank you for you feedback. I placed in P2 phase. Any contributions are more than welcome

@kaanyagci Sounds good, I'll take a look.
Btw the first thing that I'm planning to do before adding any new features is switching to the desktop website, I'll work on in then I'll create a pull request once I finish.