mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-08-08 22:42:55 -04:00
Fix non-tos exchanges
This commit is contained in:
parent
46898bdd3a
commit
19eb39c866
1 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue