Mostly Bolt notes. Some small script changes.
This commit is contained in:
@ -4,7 +4,7 @@ from pathlib import Path
|
||||
import Apikeys
|
||||
import os
|
||||
|
||||
basefile = "/Users/normrasmussen/Downloads/Mizuno_May.csv"
|
||||
basefile = "/Users/normrasmussen/Downloads/Mizuno June 2023 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/"
|
||||
@ -35,7 +35,8 @@ def load_file(basefile):
|
||||
url2 = prop_url + f"{uuid}"
|
||||
response = requests.get(url2, headers=headers)
|
||||
data = response.json()
|
||||
pgaid = data["data"]["attributes"]["properties"]["account_number"]
|
||||
pgaid = (data["data"]
|
||||
["attributes"]["properties"]["account_number"])
|
||||
row_dict["pgaid"] = pgaid
|
||||
dict_list.append(row_dict)
|
||||
print("No errors! Passing along the dictionary!")
|
||||
|
||||
Reference in New Issue
Block a user