]> git.mxchange.org Git - fba.git/commitdiff
removed get_isntance_type.py
authorEnju Aihara <9839590-EnjuAihara@users.noreply.gitlab.com>
Tue, 22 Mar 2022 16:27:27 +0000 (17:27 +0100)
committerEnju Aihara <9839590-EnjuAihara@users.noreply.gitlab.com>
Tue, 22 Mar 2022 16:27:27 +0000 (17:27 +0100)
get_instance_type.py [deleted file]

diff --git a/get_instance_type.py b/get_instance_type.py
deleted file mode 100644 (file)
index 04560fe..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-from requests import get
-
-list = []
-
-with open("instances.txt", "r") as f:
-    list = f.readlines()
-
-for line in list:
-    print(line.replace("\n", ""))
-    try:
-        res = get("https://"+line.replace("\n", ""), timeout=5)
-        if "pleroma" in res.text.lower():
-            with open("pleroma_instances.txt", "a") as f:
-                f.write(line)
-        elif "mastodon" in res.text.lower():
-            with open("mastodon_instances.txt", "a") as f:
-                f.write(line)
-        else:
-            with open("other_instances.txt", "a") as f:
-                f.write(line)
-    except:
-        print("error:", line)
\ No newline at end of file