From 19eb39c86623cd385ff96e3f269014c5a81524c4 Mon Sep 17 00:00:00 2001 From: pluja Date: Sat, 4 Sep 2021 23:13:19 +0200 Subject: [PATCH] Fix non-tos exchanges --- automated-checks.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/automated-checks.py b/automated-checks.py index cb94c30..22bd569 100644 --- a/automated-checks.py +++ b/automated-checks.py @@ -82,9 +82,8 @@ def site_check(): print("EDITING LAST CHECK") for exchange in data['exchanges']: - if exchange['tos-urls'][0]: + if exchange['tos-urls'][0] and exchange['tos-urls'][0] != -1: print(f"Exchange: {exchange['name']}") - site = httpx.get(exchange['url']) for url in exchange['tos-urls']: r = httpx.get(url) soup = BeautifulSoup(r.content, features="html.parser") @@ -101,7 +100,7 @@ def site_check(): suspicious_ptags.append(str(ptag)) potential_kyc = True else: - if exchange['tos'][0] == -1 or ".onion" in exchange['url']: + if exchange['tos-urls'][0] == -1 or ".onion" in exchange['url']: potential_kyc = False if exchange['name'] in dom_generated_tos_POTKYC_exchanges: