From 42b23091d96f14cf02a1069d92a94c3e7e49de4e Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 1 Jul 2019 11:21:08 +1000 Subject: [PATCH] blacklist knzk.me (rip) --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 15e11f5..6df5cd6 100755 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ scopes = ["read:statuses", "read:accounts", "read:follows", "write:statuses", "r cfg = { "site": "https://botsin.space", "cw": None, - "instance_blacklist": ["bofa.lol", "witches.town"], + "instance_blacklist": ["bofa.lol", "witches.town", "knzk.me"], "learn_from_cw": False, "mention_handling": 1, "max_thread_length": 15 @@ -123,7 +123,7 @@ for f in following: continue try: - # 1. download host-meta to find webfing URL + # 1. download host-meta to find webfinger URL r = requests.get("https://{}/.well-known/host-meta".format(instance), timeout=10) # 2. use webfinger to find user's info page uri = patterns["uri"].search(r.text).group(1)