Category : websocket

import websocket #pip install websocket-client import json import threading import time token_file = open("token.txt", "r") token_read = token_file.read() token_list = token_read.split() token_file.close() print(token_list) def send_json_request(ws, request): ws.send(json.dumps(request)) def recieve_json_response(ws): response = ws.recv() if response: return json.loads(response) def heartbeat(interval, ws): print(‘Heartbeat begin’) while True: time.sleep(interval) heartbeatJSON = { "op": 1, "d": "null" } send_json_request(ws, heartbeatJSON) print("Heartbeat ..

Read more

I am trying to create a email verifier api but for most of domains I not able to reach domain server. Here is my code: app = Flask(__name__) @app.route(‘/<string:email>’,methods=[‘GET’,’POST’]) def post(email): blocked_keywords = ["spamhaus", "proofpoint", "cloudmark", "banned", "blacklisted", "blocked", "block list", "denied"] proxy = { ‘socks4’: socks.SOCKS4, ‘socks5’: socks.SOCKS5, ‘http’: socks.HTTP # does not guareentee ..

Read more

I am trying to create an email verifier API, but for most domains I am not able to reach the domain server. Here is my code: app = Flask(__name__) @app.route(‘/<string:email>’,methods=[‘GET’,’POST’]) def post(email): blocked_keywords = ["spamhaus", "proofpoint", "cloudmark", "banned", "blacklisted", "blocked", "block list", "denied"] proxy = { ‘socks4’: socks.SOCKS4, ‘socks5’: socks.SOCKS5, ‘http’: socks.HTTP # does not ..

Read more