Fixed UX Design's Script, added some directory changes for Walmart. Notes for Anthology
This commit is contained in:
@ -3,7 +3,7 @@ import glob
|
||||
import os
|
||||
from datetime import date
|
||||
|
||||
currentdir = "/Users/normrasmussen/Documents/Northpass/Scripts/Walmart_Screenshots/"
|
||||
currentdir = "/Users/normrasmussen/Documents/Work/Scripts/Walmart_Screenshots/"
|
||||
|
||||
|
||||
def find_pictures(currentdir):
|
||||
@ -58,8 +58,9 @@ def delete_originals(currentdir):
|
||||
for file in path:
|
||||
try:
|
||||
os.remove(file)
|
||||
except:
|
||||
except TypeError as e:
|
||||
print("Error!")
|
||||
print(e)
|
||||
finally:
|
||||
print("All Done")
|
||||
|
||||
|
||||
@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user