Fixed UX Design's Script, added some directory changes for Walmart. Notes for Anthology

This commit is contained in:
Norm Rasmussen
2023-02-23 15:34:42 -05:00
parent 60e2ecda09
commit 707af4f01f
7 changed files with 119 additions and 3 deletions

View File

@ -14,7 +14,7 @@ const getAllGroups = async (num) => {
await axios({
method: 'get',
url: `https://api.northpass.com/v2/courses?page=${page}&limit=100`,
url: `https://api2.northpass.com/v2/courses?page=${page}&limit=100`,
headers: {
'accept': '*/*',
'x-api-key': apiKey,
@ -61,6 +61,7 @@ async function courseOverview(id, i, num) {
console.log(course)
if (course.includes("undefined")) {
console.log("Error - Undefined UUID. Possibly end of list. Exiting.")
await browser.close();
} else {
await page.setViewport({ width:390, height:844 })
await page.goto(course, {