Skip to content

Instantly share code, notes, and snippets.

@Hipnosis183
Hipnosis183 / cors-downloader.js
Last active November 21, 2024 22:50
CORS Downloader
// 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`);
@Hipnosis183
Hipnosis183 / bemobi-scrape.js
Last active November 21, 2024 22:53
Bemobi Online Store - File Scraper
// 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.