Fix non-tos exchanges

This commit is contained in:
pluja 2021-09-04 23:13:19 +02:00
parent 46898bdd3a
commit 19eb39c866

View file

@ -82,9 +82,8 @@ def site_check():
print("EDITING LAST CHECK") print("EDITING LAST CHECK")
for exchange in data['exchanges']: 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']}") print(f"Exchange: {exchange['name']}")
site = httpx.get(exchange['url'])
for url in exchange['tos-urls']: for url in exchange['tos-urls']:
r = httpx.get(url) r = httpx.get(url)
soup = BeautifulSoup(r.content, features="html.parser") soup = BeautifulSoup(r.content, features="html.parser")
@ -101,7 +100,7 @@ def site_check():
suspicious_ptags.append(str(ptag)) suspicious_ptags.append(str(ptag))
potential_kyc = True potential_kyc = True
else: 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 potential_kyc = False
if exchange['name'] in dom_generated_tos_POTKYC_exchanges: if exchange['name'] in dom_generated_tos_POTKYC_exchanges: