1 from requests import get
5 with open("instances.txt", "r") as f:
9 print(line.replace("\n", ""))
11 res = get("https://"+line.replace("\n", ""), timeout=5)
12 if "pleroma" in res.text.lower():
13 with open("pleroma_instances.txt", "a") as f:
15 elif "mastodon" in res.text.lower():
16 with open("mastodon_instances.txt", "a") as f:
19 with open("other_instances.txt", "a") as f: