This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires NPM package 'node-fetch'. | |
// npm install node-fetch@2 | |
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const http = require('http'); | |
const util = require('util'); | |
const pipeline = util.promisify(require('stream').pipeline); | |
http.createServer().listen(3000, '127.0.0.1', async () => { | |
console.log(`[CORS Downloader]\n`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires NPM packages 'jsdom' and 'node-fetch'. | |
// npm install jsdom node-fetch@2 | |
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const http = require('http'); | |
const jsdom = require('jsdom'); | |
const util = require('util'); | |
const pipeline = util.promisify(require('stream').pipeline); | |
// Define scraper values. |
NewerOlder