C
C
CODER5412018-06-23 21:01:37
JavaScript
CODER541, 2018-06-23 21:01:37

How to download a video from a link using Node.js?

I'm trying to download videos in bulk using links like:
https://2ch.hk/b/src/178164228/15297765223990.webm
I'm parsing the site, looking for links and trying to download in order, but the problem is that the download starts and drops by 1% percentage
The jump of a separate video goes fine, but when there is an array of links
, everything goes not in the best way (point 2)

for (var i = 0; i < webmlinks.length; i++) 
{
                      	
  	//var tmp = titles[i]
     	  var url =webmlinks[i]
     	 const download = new Downloader();
         download.get(url);
         download.on('done', (dst) => {
                          // download is finished
         });
 }

What to do and how to fix?
The last time I used
this one, only the download starts at a maximum of 1% and the break
. I tried other modules, but it didn’t help, I even tried without modules.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2018-06-23
@CODER541

https://www.npmjs.com/package/download

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question