start = 0
for mode in ["followers", "following"]:
- print(f"DEBUG: domain='{domain}',mode='{mode}'")
+ # NOISY-DEBUG: print(f"DEBUG: domain='{domain}',mode='{mode}'")
while True:
try:
res = reqto.get(f"https://{domain}/api/v1/server/{mode}?start={start}&count=100", headers=headers, timeout=(config["connection_timeout"], config["read_timeout"]))
# NOISY-DEBUG: print(f"DEBUG: res.ok={res.ok},res.json[]={type(res.json())}")
if res.ok and isinstance(res.json(), dict):
- # NOISY-DEBUG: uccess, res.json():", len(res.json()))
+ # NOISY-DEBUG: print("DEBUG: Success, res.json():", len(res.json()))
json = res.json()
if "data" in json:
if link["rel"] in nodeinfo_identifier:
# NOISY-DEBUG: print("DEBUG: Fetching nodeinfo from:", link["href"])
res = reqto.get(link["href"])
+
# NOISY-DEBUG: print("DEBUG: href,res.ok,res.status_code:", link["href"], res.ok, res.status_code)
if res.ok and isinstance(res.json(), dict):
# NOISY-DEBUG: print("DEBUG: Found JSON nodeinfo():", len(res.json()))
header_text = tidyup(header.text)
if header_text in language_mapping:
- print(f"DEBUG: header_text='{header_text}'")
+ # NOISY-DEBUG: print(f"DEBUG: header_text='{header_text}'")
header_text = language_mapping[header_text]
if header_text in blocks or header_text.lower() in blocks: