LJ Hooker templates re-downloaded so Tracy didn't have to send a ticket to the blackhole of Jira. Updated some scripts to get Sandata groups and a few Walmart screenshots.
This commit is contained in:
BIN
Scripts/.DS_Store
vendored
BIN
Scripts/.DS_Store
vendored
Binary file not shown.
@ -23,3 +23,4 @@ DOUGLASELLIMAN = "Bknf8kidbluRfcKu3m3lKoxS8"
|
||||
CIN7 = "51BNlRsLYKQxSu1q1UQq7F63j"
|
||||
FULLSTORY = "ePChrDWLegENa2qnfb259O2Ki"
|
||||
RENAISSANCE = "YFykqX1u0d3HveONc5I9CKnJ1"
|
||||
SANDATA = "HdZFoXGCFpt8NnTOzIQY0kVDj"
|
||||
|
||||
Binary file not shown.
@ -5,7 +5,7 @@ import Apikeys
|
||||
import json
|
||||
|
||||
|
||||
APIKEY = Apikeys.ANTHOLOGY
|
||||
APIKEY = Apikeys.SANDATA
|
||||
groups_dict = {}
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
|
||||
@ -35,7 +35,7 @@ def get_groups(APIKEY):
|
||||
break
|
||||
|
||||
with open(
|
||||
"/Users/normrasmussen/Downloads/Datasnipper-Groups.csv", "a+", newline="\n"
|
||||
"/Users/normrasmussen/Downloads/Sandata-Groups.csv", "a+", newline="\n"
|
||||
) as csvfile:
|
||||
for group in groups:
|
||||
for key, value in group.items():
|
||||
|
||||
@ -1,10 +1,20 @@
|
||||
import requests
|
||||
import pandas as pd
|
||||
import Apikeys
|
||||
import pprint
|
||||
|
||||
apiKey = Apikeys.walmartprod
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
apiKey = Apikeys.WALMARTPROD
|
||||
course_dict = {}
|
||||
|
||||
COURSES= [
|
||||
"Shopping an order",
|
||||
"Delivery FAQs",
|
||||
"Checking out Shopping & Delivery orders",
|
||||
"Shopping & Delivery FAQs",
|
||||
"Communicating with customers",
|
||||
"Delivering an order",
|
||||
]
|
||||
|
||||
def get_course():
|
||||
count = 0
|
||||
@ -13,7 +23,6 @@ def get_course():
|
||||
while True:
|
||||
count += 1
|
||||
url = f"https://api2.northpass.com/v2/courses?page={count}"
|
||||
print(url)
|
||||
headers = {"accept": "application/json", "X-Api-Key": apiKey}
|
||||
response = requests.get(url, headers=headers)
|
||||
data = response.json()
|
||||
@ -24,23 +33,28 @@ def get_course():
|
||||
uuid = response["id"]
|
||||
name = response["attributes"]["name"]
|
||||
# build_url = response["links"]["builder"]["href"]
|
||||
course_dict = {
|
||||
"id": uuid,
|
||||
"name": name,
|
||||
"status": status,
|
||||
# "build_url": build_url
|
||||
# "url": f"https://walmart.northpass.com/app/courses/{uuid}",
|
||||
}
|
||||
if name in COURSES:
|
||||
print(uuid)
|
||||
course_dict = {
|
||||
"id": uuid,
|
||||
"name": name,
|
||||
"status": status,
|
||||
# "build_url": build_url
|
||||
# "url": f"https://walmart.northpass.com/app/courses/{uuid}",
|
||||
}
|
||||
courses.append(course_dict)
|
||||
|
||||
# FIX: Up until here, each course gets read to the terminal.
|
||||
# FIX: After this, something is being overwritten.
|
||||
|
||||
cat_id = response["relationships"]["categories"]["data"]
|
||||
get_cat_name(cat_id, course_dict, courses)
|
||||
# cat_id = response["relationships"]["categories"]["data"]
|
||||
# get_cat_name(cat_id, course_dict, courses)
|
||||
|
||||
if "next" not in nextlink:
|
||||
break
|
||||
|
||||
# pp.pprint(courses)
|
||||
# print(len(courses))
|
||||
|
||||
def get_cat_name(cat_id, course_dict, courses):
|
||||
headers = {"accept": "application/json", "X-Api-Key": apiKey}
|
||||
|
||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
@ -4,7 +4,7 @@ import re
|
||||
import os
|
||||
from datetime import date
|
||||
|
||||
currentdir = "/Users/normrasmussen/Documents/Work/Scripts/Auto_Scrape_Screenshots/"
|
||||
currentdir = "/Users/normrasmussen/Documents/Work/Scripts/Walmart/"
|
||||
|
||||
def find_pictures(currentdir):
|
||||
files = []
|
||||
@ -8,7 +8,7 @@ const apiKey = "6hUfJdAartHTHhHc0WIRZYPWe"
|
||||
// Luminate Production ^
|
||||
const uid = "/\?uid\=7beg87y4-fh24-4929-3rt5-24kdn87s5241";
|
||||
const groupIds = [
|
||||
'db8120fa-2107-4d69-b557-47509cfb594c',
|
||||
'563b97ed-6d1f-4fd9-a9eb-82842e13468e',
|
||||
]
|
||||
|
||||
const getAllGroups = async (num) => {
|
||||
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 142 KiB |
50
Scripts/pyenv_general.txt
Normal file
50
Scripts/pyenv_general.txt
Normal file
@ -0,0 +1,50 @@
|
||||
appdirs==1.4.4
|
||||
beautifulsoup4==4.12.3
|
||||
bs4==0.0.2
|
||||
certifi==2023.11.17
|
||||
charset-normalizer==3.3.2
|
||||
cssselect==1.2.0
|
||||
docstring-to-markdown==0.13
|
||||
exceptiongroup==1.2.0
|
||||
fake-useragent==1.4.0
|
||||
greenlet==3.0.3
|
||||
idna==3.6
|
||||
importlib_metadata==7.0.2
|
||||
iniconfig==2.0.0
|
||||
jedi==0.19.1
|
||||
lxml==5.1.0
|
||||
numpy==1.26.3
|
||||
packaging==24.0
|
||||
pandas==2.1.4
|
||||
parse==1.20.1
|
||||
parso==0.8.3
|
||||
pillow==10.2.0
|
||||
playwright==1.42.0
|
||||
pluggy==1.4.0
|
||||
pyee==11.0.1
|
||||
pyppeteer==2.0.0
|
||||
pyquery==2.0.0
|
||||
pytest==8.1.1
|
||||
pytest-base-url==2.1.0
|
||||
pytest-playwright==0.4.4
|
||||
python-dateutil==2.8.2
|
||||
python-lsp-jsonrpc==1.1.2
|
||||
python-lsp-server==1.9.0
|
||||
python-slugify==8.0.4
|
||||
pytz==2023.3.post1
|
||||
requests==2.31.0
|
||||
requests-html==0.10.0
|
||||
ruff==0.2.2
|
||||
six==1.16.0
|
||||
soupsieve==2.5
|
||||
termcolor==2.4.0
|
||||
text-unidecode==1.3
|
||||
tomli==2.0.1
|
||||
tqdm==4.66.2
|
||||
typing_extensions==4.10.0
|
||||
tzdata==2023.4
|
||||
ujson==5.9.0
|
||||
urllib3==1.26.18
|
||||
w3lib==2.1.2
|
||||
websockets==10.4
|
||||
zipp==3.17.0
|
||||
0
Scripts/requirements.txt
Normal file
0
Scripts/requirements.txt
Normal file
@ -1,5 +0,0 @@
|
||||
propslist = '["Anthology 101: Essential", "Anthology Student: Essential", "Power BI: Essential", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""]'
|
||||
# propslist.split(',')
|
||||
props = propslist.replace(']','').replace('[','').replace('"",','')
|
||||
props2 = props.replace('"','')
|
||||
print(props2)
|
||||
Reference in New Issue
Block a user