aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfetch-status.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/fetch-status.py b/fetch-status.py
index 1c0522d..26bfb56 100755
--- a/fetch-status.py
+++ b/fetch-status.py
@@ -35,6 +35,14 @@ profile_post = soup.find("div", attrs={
"data-lb-id": re.compile(r"profile\-post\-\d+")
})
+if profile_post is None:
+ print("Content-Type: text/plain; charset=utf-8")
+ print("Status: 403")
+ print()
+ print("🚨🚨🚨 schizo alert! 🚨🚨🚨")
+ print("it won't work if you don't expose your profile to the public, sorry")
+ quit()
+
print("Content-Type: text/html; charset=utf-8")
print()
print(profile_post)