This commit is contained in:
piair
2023-04-12 18:25:12 +02:00
parent f810f0ee3c
commit b4c9204bf2
5 changed files with 127 additions and 184 deletions

View File

@ -1,19 +1,23 @@
from modules.imports import *
from modules.config import *
import modules.globals as g
# add the time arround the text given in [text]&
def Timer(text: str, mail: str) -> str:
return(f"[{mail.split('@')[0]} - {datetime.today().strftime('%d/%m')} - {timedelta(seconds = round(float(time() - START_TIME)))}] " + str(text))
def Timer(text: str) -> str:
return(f"[{g._mail.split('@')[0]} - {datetime.today().strftime('%d/%m')} - {timedelta(seconds = round(float(time() - START_TIME)))}] " + str(text))
# replace the function print, with more options
# [txt] : string, [driver] : selenium webdriver
def printf2(txt, mail, LOG = LOG):
print(Timer(txt, mail))
def printf(txt):
print(Timer(txt))
# return current page domain
def get_domain(driver):
return(driver.current_url.split("/")[2])
# check if the user is using IPV4 using ipify.org
# [driver] : selenium webdriver
# never used here
@ -26,7 +30,6 @@ def check_ipv4(driver):
return False
def custom_sleep(temps):
try :
if FAST and temps > 50: