Skip to content

Instantly share code, notes, and snippets.

View BrandyBuizel's full-sized avatar

Brandon BrandyBuizel

View GitHub Profile
@Jimbly
Jimbly / index.js
Last active July 1, 2024 17:00
Steam CD Key Batch query
/* jshint esversion: 6*/
const assert = require('assert');
const async = require('async');
const fs = require('fs');
let request = require('request');
const FileCookieStore = require('tough-cookie-filestore');
if (!fs.existsSync('cookies.json')) { fs.writeFileSync('cookies.json', '{}'); }
let j = request.jar(new FileCookieStore('cookies.json'));
request = request.defaults({ jar : j });