Lumiante templates. Anthology and Datasnipper too. Quick scripts.
This commit is contained in:
@ -4,7 +4,7 @@ from pathlib import Path
|
||||
import Apikeys
|
||||
import os
|
||||
|
||||
basefile = "/Users/normrasmussen/Downloads/mizuno-aug2024-completions.csv"
|
||||
basefile = "/Users/normrasmussen/Downloads/mizuno-sept-completions.csv"
|
||||
api_key = Apikeys.MIZUNO
|
||||
uuid_url = "https://api.northpass.com/v2/people?filter[email][eq]="
|
||||
prop_url = "https://api.northpass.com/v2/properties/people/"
|
||||
@ -51,7 +51,7 @@ def load_file(basefile):
|
||||
completions = completions[completions["userid"] != "0"]
|
||||
# completions = completions.iloc[:, 0:]
|
||||
completions.to_csv(
|
||||
"/Users/normrasmussen/Downloads/Mizuno-August2024-with-PGAID.csv",
|
||||
"/Users/normrasmussen/Downloads/Mizuno-Sept2024-with-PGAID.csv",
|
||||
index=False,
|
||||
)
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ HEADERS = {
|
||||
"X-Api-Key": APIKEY,
|
||||
}
|
||||
BASEURL = "https://api.northpass.com/v2/"
|
||||
IMPORTFILE = "/Users/normrasmussen/Downloads/cisa-092624.csv"
|
||||
IMPORTFILE = "/Users/normrasmussen/Downloads/cisa-100124.csv"
|
||||
|
||||
|
||||
def bulk_invite_and_group():
|
||||
@ -33,6 +33,7 @@ def bulk_invite_and_group():
|
||||
print(groups)
|
||||
for group in groups:
|
||||
payload = ""
|
||||
print(group)
|
||||
tmp_group = data[data.Group == group]
|
||||
people = list(tmp_group["Email"])
|
||||
group = str(tmp_group["Group"].unique())[2:-2]
|
||||
|
||||
Reference in New Issue
Block a user