Finished mizuno script. Changed Walmart's courses script. Added some notes.

This commit is contained in:
Norm Rasmussen
2023-04-05 18:49:34 -04:00
parent ecdf46fd33
commit 61d7aa7298
3 changed files with 65 additions and 2 deletions

View File

@ -13,6 +13,7 @@ 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()
@ -33,7 +34,7 @@ def get_course():
# FIX: After this, something is being overwritten.
cat_id = response["relationships"]["categories"]["data"]
get_cat_name(cat_id, course_dict, courses)
# get_cat_name(cat_id, course_dict, courses)
if "next" not in nextlink:
break