removed get_isntance_type.py
This commit is contained in:
parent
57d39c3fd9
commit
b4710b377f
@ -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)
|
Loading…
x
Reference in New Issue
Block a user