5

I'm using puppeteer to get video URL but I got a blob URL. how can I download video have blob URL with Nodejs? I have try using https module but I can't download it

const https = require('https');
var request = https.get('blob:bloburlhere')
vy.pham
  • 571
  • 6
  • 20
  • 2
    Make Puppeteer do that for you instead, since it'll have made it: blobs are a browser-internal quasi-url system. See https://developer.mozilla.org/en-US/docs/Web/API/Blob – Mike 'Pomax' Kamermans Sep 27 '20 at 06:45
  • hi, thanks for your reply, do you have any sample code? – vy.pham Sep 27 '20 at 07:01
  • 1
    no, because it's literally "make Puppeteer do this", so look up how Puppeteer can resolve a download, e.g. https://stackoverflow.com/questions/49245080/how-to-download-file-with-puppeteer-using-headless-true – Mike 'Pomax' Kamermans Sep 27 '20 at 15:35

0 Answers0