Scripts for Employ & imp help
This commit is contained in:
@ -30,3 +30,4 @@ SKAN = "89qJQDaFl3DvIpSSOUC5PM9V6"
|
||||
KARBON = "peQbnkfUnYLGPfIzyCxfLs634"
|
||||
BLOOMERANG = "ewGDqLgsklMnytqzUka2wmgIi"
|
||||
GSU = "rUUKNuBZ0rmRNPftB4smYhQ5L"
|
||||
EMPLOY = "qcNggCm4SBtC0gTqLGv30vX8l"
|
||||
|
||||
Binary file not shown.
@ -4,7 +4,7 @@ import pprint
|
||||
import csv
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
APIKEY = Apikeys.LUMINATE_US
|
||||
APIKEY = Apikeys.EMPLOY
|
||||
HEADERS = {
|
||||
"accept": "application/json",
|
||||
"X-Api-Key": APIKEY,
|
||||
@ -36,7 +36,7 @@ def get_courses():
|
||||
# for course_name in COURSES:
|
||||
count += 1
|
||||
# url = f"https://api.northpass.com/v2/courses/?filter[name][eq]={course_name}"
|
||||
url = f"https://api2.northpass.com/v2/courses/?limit=100&page={count}"
|
||||
url = f"https://api.northpass.com/v2/courses/?limit=100&page={count}"
|
||||
response = requests.get(url, headers=HEADERS)
|
||||
response = response.json()
|
||||
nextlink = response["links"]
|
||||
|
||||
Reference in New Issue
Block a user