B:BD[
2.9812] → [
2.9812:10320]
let curl = exec(
"curl 'https://albertacannabis.org/api/cxa/CatalogExtended/GetProductList' -H " +
await cookieString(page) +
" -H 'User-Agent: " + ua +
"' -H '__RequestVerificationToken: " + csrf +
"' --data 'ps=1000&f=in_stock=true|false&sd=Asc&cci={DAAC337F-EC42-9DD5-33BC-851875C99BEB}&ci={C8173B3F-26C8-41AB-B042-9CAAD37B543B}&__RequestVerificationToken=" + csrf +
"' --compressed"
).then(raw => [Object.values(groupBy(JSON.parse(raw.stdout).Variants, 'ProductId')), new Date()]);
let curl = exec(`curl "https://albertacannabis.org/api/cxa/CatalogExtended/GetProductList" -H ${await cookieString(page)} -H "User-Agent: ${ua}" -H "__RequestVerificationToken: ${csrf}" --data "ps=1000&f=in_stock=true|false&sd=Asc&cci={DAAC337F-EC42-9DD5-33BC-851875C99BEB}&ci={C8173B3F-26C8-41AB-B042-9CAAD37B543B}&__RequestVerificationToken=${csrf}" --compressed`)
.then(raw => [Object.values(groupBy(JSON.parse(raw.stdout).Variants, 'ProductId')), new Date()]);