需要循环去下载远程文件,然后自己写了一个demo,可以直接运行,如下: //文件下载 var fs = require("fs"); var path = require("path"); var request = require("request"); //创建文件夹目录 var dirPath = path.join(__dirname, "file"); if (!fs.existsSync(dirPath)) { f
var express = require('express'); var request = require('request');var http = require('http');var url = require('url');var fs = require("fs"); var router = express.Router(); /* GET home page. */router.get('/', function (req, res, next) { var url