Deleted a bunch of files and cleaned things up. Started the script for finding correct domain names for Anthology. Recast templates. Todolist.

This commit is contained in:
Norm Rasmussen
2024-03-08 19:18:46 -05:00
parent 3490b97063
commit a3455a720c
111 changed files with 3321 additions and 1639 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
from requests_html import HTMLSession
from domains_list import DOMAINS
for domain in DOMAINS:
URL = f"https://{domain}"
session = HTMLSession()
resp = session.get(URL)
title = resp.html.find('head > title', first=True)
group_name = title.text.split("|")[0]
print(group_name)

View File

@ -1,8 +0,0 @@
test_list = [
{"row_num":0, "name":"hello"},
{"row_num":1, "name":"goodbye"}
]
if "goodbye" in test_list[0].values():
print("It Exists!")
else:
print("it doesn't exist")

View File

@ -1,48 +0,0 @@
{
"links": {
"self": "https://api.northpass.com/v1/communications/deliveries?include=person"
},
"data": [
{
"type": "communication_activities",
"id": "c339a2aa-3a55-4181-ab66-1d9d19eabfb8",
"attributes": {
"communication_id": "account_activation_learners",
"created_at": "2024-01-09T06:22:15Z"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "362a0113-86ea-4568-9778-78bf52e7956e"
}
}
}
}
],
"included": [
{
"type": "people",
"id": "362a0113-86ea-4568-9778-78bf52e7956e",
"attributes": {
"activated_at": "2024-01-09T06:22:15Z",
"created_at": "2024-01-09T06:22:15Z",
"email": "test+user-60-1704781335@schoolkeep.com",
"updated_at": "2024-01-09T06:22:15Z",
"unsubscribed": false
},
"links": {
"self": "https://api.northpass.com/v1/people/362a0113-86ea-4568-9778-78bf52e7956e",
"teaching": "https://app.northpass.com/people/362a0113-86ea-4568-9778-78bf52e7956e"
},
"relationships": {
"school": {
"data": {
"type": "schools",
"id": "9f22f5b8-2721-4b2b-a1a0-882642149495"
}
}
}
}
]
}

View File

@ -1,189 +0,0 @@
{
"links": {
"self": "https://api.northpass.com/v1/communications/deliveries",
"next": "https://api.northpass.com/v1/communications/deliveries?page=2"
},
"data": [
{
"type": "communication_activities",
"id": "006b8a25-6d7f-426b-b231-efdd93db8802",
"attributes": {
"communication_id": "certificate_awarded",
"created_at": "2024-02-02T17:03:29Z",
"delivered_at": "2024-02-02T17:03:33Z",
"status": "delivered"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "d4194ec6-d9fc-4a15-b163-4f3b6d927c79"
}
}
}
},
{
"type": "communication_activities",
"id": "2e4bb0f8-9f3e-4e0a-95b2-53a896a81c2c",
"attributes": {
"communication_id": "certificate_awarded",
"created_at": "2024-02-02T16:38:25Z",
"delivered_at": "2024-02-02T16:38:27Z",
"status": "delivered"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "fdae3c20-ee70-4aac-8ea8-f4472ac98d56"
}
}
}
},
{
"type": "communication_activities",
"id": "4ee2ad2c-ff43-4c78-8cbd-7232a19b5c14",
"attributes": {
"communication_id": "courses_incomplete_notification",
"created_at": "2024-02-02T15:23:51Z",
"status": "failed"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "0e4b602d-952d-4ad8-9d64-dadbc87b3cf9"
}
}
}
},
{
"type": "communication_activities",
"id": "5c821046-9e46-415c-8771-fcb72c5a7bbb",
"attributes": {
"communication_id": "courses_incomplete_notification",
"created_at": "2024-02-02T15:23:50Z",
"status": "failed"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "0e4b602d-952d-4ad8-9d64-dadbc87b3cf9"
}
}
}
},
{
"type": "communication_activities",
"id": "929f031b-c5d2-4d00-b42d-85fda56b24eb",
"attributes": {
"communication_id": "certificate_awarded",
"created_at": "2024-02-02T13:52:53Z",
"delivered_at": "2024-02-02T13:52:57Z",
"status": "delivered"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "4f123cbd-aba5-4684-ba1c-c7fe23e8e306"
}
}
}
},
{
"type": "communication_activities",
"id": "7a22aa62-487e-4c50-b91a-3d2b9c9f88ea",
"attributes": {
"communication_id": "certificate_awarded",
"created_at": "2024-02-02T12:44:08Z",
"delivered_at": "2024-02-02T12:44:11Z",
"status": "delivered"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "f99a3fa1-d373-4f95-ab39-9d4b4e716a6c"
}
}
}
},
{
"type": "communication_activities",
"id": "b4eec72e-ee50-4427-bb96-60ec8bb516f2",
"attributes": {
"communication_id": "courses_incomplete_notification",
"created_at": "2024-02-02T03:29:21Z",
"delivered_at": "2024-02-02T03:29:24Z",
"opened_at": "2024-02-02T14:42:13Z",
"status": "open"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "02af2df0-4727-4de9-af92-956cbc989738"
}
}
}
},
{
"type": "communication_activities",
"id": "2f9306d7-b4bc-44ed-bb49-3b088cb5c1bd",
"attributes": {
"communication_id": "courses_incomplete_notification",
"created_at": "2024-02-02T03:27:56Z",
"delivered_at": "2024-02-02T03:27:58Z",
"opened_at": "2024-02-02T03:43:41Z",
"status": "open"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "aef9e208-bfe2-4871-9723-4a69e966db19"
}
}
}
},
{
"type": "communication_activities",
"id": "3d9af6f9-da85-48cc-9dab-67c232b39da4",
"attributes": {
"communication_id": "courses_incomplete_notification",
"created_at": "2024-02-02T03:27:55Z",
"delivered_at": "2024-02-02T03:27:57Z",
"status": "delivered"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "9ff19205-5243-4a1f-ad35-853364b073a0"
}
}
}
},
{
"type": "communication_activities",
"id": "c44110af-7366-4e8a-8c81-7592748ec6ee",
"attributes": {
"communication_id": "courses_incomplete_notification",
"created_at": "2024-02-02T03:27:54Z",
"delivered_at": "2024-02-02T03:27:56Z",
"opened_at": "2024-02-02T07:51:03Z",
"status": "open"
},
"relationships": {
"person": {
"data": {
"type": "people",
"id": "0e86da6f-2ad4-4647-ac39-f962e144c59e"
}
}
}
}
]
}

View File

@ -1,29 +0,0 @@
import threading
import queue
import time
q = queue.Queue()
# def worker():
# while True:
# item = q.get()
# print(f'Working on {item}')
# time.sleep(1)
# print(f'Finished {item}')
# time.sleep(1)
# q.task_done()
#
# # Turn-on the worker thread.
# threading.Thread(target=worker, daemon=True).start()
#
# Send thirty task requests to the worker.
for item in range(30):
print(f'Working on {item}')
time.sleep(1)
print(f'Finished {item}')
time.sleep(1)
# q.put(item)
# Block until all tasks are done.
# q.join()
print('All work completed')