Files
Mycontent/scripts/check_mbti_url.py
2026-04-28 18:39:08 +08:00

14 lines
374 B
Python

import urllib.request
urls = [
"https://soulapi.quwanzhi.com/api/admin/mbti-avatars",
"https://soulapi.quwanzhi.com/static/mbti-avatars-png-male/INTJ.png",
]
for u in urls:
try:
with urllib.request.urlopen(u, timeout=12) as resp:
print(u, resp.status, resp.headers.get("Content-Type"))
except Exception as e:
print(u, "ERR", e)