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
const jsonQ = require('jsonq'); | |
const fetch = require('node-fetch'); | |
const open = require('open'); | |
const shop_url = 'https://sc-bushfire-appeal.com'; | |
const generosity_level = 5; | |
function extractAllVariants(data) { | |
const json = jsonQ(data); | |
const products = json.find('products'); |