mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
unfinished code with tests
This commit is contained in:
parent
106f85f9e6
commit
3106b03422
2 changed files with 2 additions and 9 deletions
1
SimpleP
1
SimpleP
|
@ -1 +0,0 @@
|
|||
Subproject commit fde07e16fda3f3341e5d51df0f3309b4361c6e08
|
|
@ -1,8 +1,6 @@
|
|||
from websockets.sync.client import connect
|
||||
import json
|
||||
import random
|
||||
import sys
|
||||
import re
|
||||
|
||||
|
||||
# 'groupProfile'
|
||||
|
@ -17,7 +15,7 @@ chat = "https://simplex.chat/contact#/?v=2-7&smp=smp%3A%2F%2Fu2dS9sG8nMNURyZwqAS
|
|||
group = r"https://simplex.chat/contact#/?v=2-7&smp=smp%3A%2F%2Fhpq7_4gGJiilmz5Rf-CswuU5kZGkm_zOIooSw6yALRg%3D%40smp5.simplex.im%2F8SfErsx9mxKxDf43tG28e3d3AY53ExYg%23%2F%3Fv%3D1-3%26dh%3DMCowBQYDK2VuAyEAY0E79e_79XZn-nWhzjTjubWsKbUTR2DPqyjXGOSkY1k%253D%26srv%3Djjbyvoemxysm7qxap7m5d5m35jzv5qq6gnlv7s4rsn7tdwwmuqciwpid.onion&data=%7B%22groupLinkId%22%3A%22kEFv_MuLHSiq6teQ87hqYg%3D%3D%22%7D"
|
||||
error_group = r"https://simplex.chat/contact#/?v=2-7&smp=smp%3A%2F%2Fhpq7_4gGJiilmz5Rf-CswuU5kZGkm_z=%7B%22groupLinkId%22%3A%22kEFv_MuLHSiq6teQ87hqYg%3D%3D%2%7D"
|
||||
deleted_group = r"https://simplex.chat/contact#/?v=2-7&smp=smp%3A%2F%2Fhpq7_4gGJiilmz5Rf-CswuU5kZGkm_zOIooSw6yALRg%3D%40smp5.simplex.im%2F13jrHyHfGDSROmVb3a54C6fsF7rfYpkX%23%2F%3Fv%3D1-3%26dh%3DMCowBQYDK2VuAyEAd5Zap4vAhLICUvUJo-mSY-6lgYX_-EqTI7saDuypsQ8%253D%26srv%3Djjbyvoemxysm7qxap7m5d5m35jzv5qq6gnlv7s4rsn7tdwwmuqciwpid.onion&data=%7B%22groupLinkId%22%3A%22m1HwUMtTE-cOLcz9x9fGSw%3D%3D%22%7D"
|
||||
|
||||
deleted_link = r"https://simplex.chat/contact#/?v=2-7&smp=smp%3A%2F%2Fhpq7_4gGJiilmz5Rf-CswuU5kZGkm_zOIooSw6yALRg%3D%40smp5.simplex.im%2FJxdzGApxYi_v9nH_f1PBuqxJX8fMlPDi%23%2F%3Fv%3D1-3%26dh%3DMCowBQYDK2VuAyEAZnaMzINXoeqcUFOm8RGLMCvFdur3Ec5KypmDuE0JWwA%253D%26srv%3Djjbyvoemxysm7qxap7m5d5m35jzv5qq6gnlv7s4rsn7tdwwmuqciwpid.onion&data=%7B%22groupLinkId%22%3A%22Te5H_jv1djyx4DflJlstjQ%3D%3D%22%7D"
|
||||
|
||||
# group_name = response['resp']['groups'][2][0]['groupProfile']['displayName']
|
||||
|
||||
|
@ -65,21 +63,17 @@ def is_simplex_link_valid(simplex_link: str) -> bool:
|
|||
message = websocket.recv()
|
||||
response = json.loads(message)
|
||||
repsonse_type = response['resp']['type']
|
||||
print(repsonse_type)
|
||||
# print(response)
|
||||
if 'error' in repsonse_type.lower():
|
||||
return False
|
||||
elif 'deleted' in repsonse_type.lower():
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
result = is_simplex_link_valid(deleted_group)
|
||||
print(result)
|
||||
|
||||
|
||||
|
||||
# def save_to_csv_file():
|
||||
# pass
|
||||
|
||||
|
||||
# def check_simplex_url_and_join(simplex_link: str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue