Update main.py
ss
This commit is contained in:
108
main.py
108
main.py
@@ -824,7 +824,7 @@ class ea_fucking():
|
||||
time.sleep(4)
|
||||
for i in range(5):
|
||||
print(os.path.join(self.path_png_file,r'1_dcuk_clik.PNG'))
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
try:
|
||||
try:
|
||||
|
||||
@@ -853,7 +853,7 @@ class ea_fucking():
|
||||
print(e)
|
||||
time.sleep(5)
|
||||
continue
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if location:
|
||||
pyautogui.click(pyautogui.center(location))
|
||||
|
||||
@@ -1156,10 +1156,10 @@ class ea_fucking():
|
||||
location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'fucking_per.PNG'), confidence=0.8)
|
||||
if location:
|
||||
print('pERSIAN MODDDDDDDDDDDDDDDD !!!!!!!!!!! ')
|
||||
####import pdb;pdb.set_trace()
|
||||
#####import pdb;pdb.set_trace()
|
||||
except:
|
||||
pass
|
||||
####import pdb;pdb.set_trace()
|
||||
#####import pdb;pdb.set_trace()
|
||||
try:
|
||||
print('start chek')
|
||||
location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'fucking_per_2.PNG'), confidence=0.8)
|
||||
@@ -1236,10 +1236,10 @@ class ea_fucking():
|
||||
return True
|
||||
except:
|
||||
print('notfund contniue contniue contniue')
|
||||
####import pdb;pdb.set_trace()
|
||||
#####import pdb;pdb.set_trace()
|
||||
except:
|
||||
pass '''
|
||||
##import pdb;pdb.set_trace()
|
||||
###import pdb;pdb.set_trace()
|
||||
sleep(6)
|
||||
pyautogui.press('tab')#,
|
||||
sleep(1)
|
||||
@@ -1557,7 +1557,7 @@ class ea_fucking():
|
||||
codex.end()
|
||||
codex=Gmail(value,val2,browser_proxy=browser_proxy)
|
||||
print('eror')
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
print('break_one')
|
||||
if codes==True:
|
||||
pass
|
||||
@@ -1808,7 +1808,7 @@ class ea_fucking():
|
||||
codex.end()
|
||||
codex=Gmail(value,val2,browser_proxy=browser_proxy)
|
||||
print('eror')
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return 'fail_get_code'
|
||||
|
||||
|
||||
@@ -2472,7 +2472,7 @@ class Gmail:
|
||||
print('ineeeeeeeeeeeeeeee',self.flag)
|
||||
user=self.send_username(name)
|
||||
print('user sendddddd >>>>>',user)
|
||||
#import pdb;pdb.set_trace()
|
||||
##import pdb;pdb.set_trace()
|
||||
if user=='Kill':
|
||||
print('Kill')
|
||||
self.flag_user=user
|
||||
@@ -2481,7 +2481,7 @@ class Gmail:
|
||||
time.sleep(8)
|
||||
self.send_pasword(password)
|
||||
time.sleep(9)
|
||||
#import pdb;pdb.set_trace()
|
||||
##import pdb;pdb.set_trace()
|
||||
change_lang=self.change_lang()
|
||||
|
||||
print('changelanggggggggggggggggggggggggg',change_lang)
|
||||
@@ -2565,7 +2565,7 @@ class Gmail:
|
||||
"""این تابع تمام بررسیهای خطای متنی و مبتنی بر عنصر کد اصلی را پوشش میدهد."""
|
||||
sleep(10)
|
||||
page_content = self.page.content()
|
||||
####import pdb;pdb.set_trace()
|
||||
#####import pdb;pdb.set_trace()
|
||||
if "Verify" in page_content or "Confirm you’re not a robot" in page_content:
|
||||
self.page.screenshot(path=self.picher_dir / f"_{self.name}verify.png")
|
||||
return 'robot'
|
||||
@@ -2667,7 +2667,7 @@ class Gmail:
|
||||
|
||||
def send_username(self, user):
|
||||
try:
|
||||
# #####import pdb;pdb.set_trace()
|
||||
# ######import pdb;pdb.set_trace()
|
||||
self.page.goto("https://accounts.google.com/servicelogin?service=mail", wait_until="networkidle")
|
||||
time.sleep(1)
|
||||
email_input = self.page.locator("input[type='email'], input[type='text']").first
|
||||
@@ -2945,7 +2945,7 @@ def main(path_png_file,
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
|
||||
print('----------//////////',get_turn_on_2)
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -2962,9 +2962,9 @@ def main(path_png_file,
|
||||
print('ea.get_send_sec_3 Failed!')
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if isinstance(handel_page_and_code, str):return handel_page_and_code
|
||||
@@ -2973,7 +2973,7 @@ def main(path_png_file,
|
||||
print('handel_page_and_code Failed!')
|
||||
return 'handel_page_and_code Failed'
|
||||
###########################################^^^^
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return handel_page_and_code
|
||||
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
@@ -2992,7 +2992,7 @@ def main(path_png_file,
|
||||
if not contuen_page2:
|
||||
print('contuen_page2 Failed!')
|
||||
return 'contuen_page2 Failed'
|
||||
# #####import pdb;pdb.set_trace()
|
||||
# ######import pdb;pdb.set_trace()
|
||||
# Accept buttons
|
||||
next = ea.next()
|
||||
if isinstance(next, str):return next
|
||||
@@ -3006,7 +3006,7 @@ def main(path_png_file,
|
||||
|
||||
print('accept >>>', accept)
|
||||
if 'make_other_time'==accept:
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
#return 'make_other_time'
|
||||
sleep(10)
|
||||
get_seting_sec_1 = ea.get_seting_sec_1()
|
||||
@@ -3020,7 +3020,7 @@ def main(path_png_file,
|
||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
print('----------//////////',get_turn_on_2)
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -3036,9 +3036,9 @@ def main(path_png_file,
|
||||
print('ea.get_send_sec_3 Failed!')
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if isinstance(handel_page_and_code, str):return handel_page_and_code
|
||||
@@ -3047,7 +3047,7 @@ def main(path_png_file,
|
||||
print('handel_page_and_code Failed!')
|
||||
return 'handel_page_and_code Failed'
|
||||
###########################################^^^^
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return handel_page_and_code
|
||||
if not accept:
|
||||
print('accept Failed!')
|
||||
@@ -3069,7 +3069,7 @@ def main(path_png_file,
|
||||
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -3085,9 +3085,9 @@ def main(path_png_file,
|
||||
print('ea.get_send_sec_3 Failed!')
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if isinstance(handel_page_and_code, str):return handel_page_and_code
|
||||
@@ -3096,7 +3096,7 @@ def main(path_png_file,
|
||||
print('handel_page_and_code Failed!')
|
||||
return 'handel_page_and_code Failed'
|
||||
###########################################^^^^
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return handel_page_and_code
|
||||
print('creat >>>', creat)
|
||||
if isinstance(creat, str):return creat
|
||||
@@ -3122,7 +3122,7 @@ def main(path_png_file,
|
||||
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
# #####import pdb;pdb.set_trace()
|
||||
# ######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -3139,9 +3139,9 @@ def main(path_png_file,
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
send_green_status(server)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if isinstance(handel_page_and_code, str):return handel_page_and_code
|
||||
@@ -3173,9 +3173,9 @@ def main(path_png_file,
|
||||
|
||||
|
||||
if 'make_other_time'==accept:
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
#return 'make_other_time'
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
#return 'make_other_time'
|
||||
sleep(10)
|
||||
get_seting_sec_1 = ea.get_seting_sec_1()
|
||||
@@ -3189,7 +3189,7 @@ def main(path_png_file,
|
||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
print('----------//////////',get_turn_on_2)
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -3206,9 +3206,9 @@ def main(path_png_file,
|
||||
print('ea.get_send_sec_3 Failed!')
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if isinstance(handel_page_and_code, str):return handel_page_and_code
|
||||
@@ -3217,7 +3217,7 @@ def main(path_png_file,
|
||||
print('handel_page_and_code Failed!')
|
||||
return 'handel_page_and_code Failed'
|
||||
###########################################^^^^
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return handel_page_and_code
|
||||
|
||||
|
||||
@@ -3257,7 +3257,7 @@ def main(path_png_file,
|
||||
get_turn_on_2 = ea.get_turn_on_2(codex,value,val2)
|
||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -3273,9 +3273,9 @@ def main(path_png_file,
|
||||
print('ea.get_send_sec_3 Failed!')
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
@@ -3286,7 +3286,7 @@ def main(path_png_file,
|
||||
print('handel_page_and_code Failed!')
|
||||
return 'handel_page_and_code Failed'
|
||||
###########################################^^^^
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return handel_page_and_code
|
||||
|
||||
print('creat >>>', creat)
|
||||
@@ -3319,7 +3319,7 @@ def main(path_png_file,
|
||||
if 'ALERT_to_mnay_code_chek' in str(get_turn_on_2):
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
print('----------//////////',get_turn_on_2)
|
||||
# #####import pdb;pdb.set_trace()
|
||||
# ######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -3336,9 +3336,9 @@ def main(path_png_file,
|
||||
print('ea.get_send_sec_3 Failed!')
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if isinstance(handel_page_and_code, str):return handel_page_and_code
|
||||
@@ -3347,7 +3347,7 @@ def main(path_png_file,
|
||||
print('handel_page_and_code Failed!')
|
||||
return 'handel_page_and_code Failed'
|
||||
###########################################^^^^
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return handel_page_and_code
|
||||
# Open new tab
|
||||
|
||||
@@ -3363,7 +3363,7 @@ def main(path_png_file,
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
|
||||
print('----------//////////',get_turn_on_2)
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
if 'ea_created__app_code_nead!!' in str(get_turn_on_2):
|
||||
return "ea_created__app_code_nead!!"
|
||||
if isinstance(get_turn_on_2, str):return get_turn_on_2
|
||||
@@ -3380,9 +3380,9 @@ def main(path_png_file,
|
||||
print('ea.get_send_sec_3 Failed!')
|
||||
return 'ea.get_send_sec_3 Failed'
|
||||
sleep(10)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
handel_page_and_code = ea.handel_page_and_code(codex,value,val2)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
if 'ALERT_to_mnay_code_chek' in handel_page_and_code:
|
||||
return 'ALERT_to_mnay_code_chek'
|
||||
if isinstance(handel_page_and_code, str):return handel_page_and_code
|
||||
@@ -3391,7 +3391,7 @@ def main(path_png_file,
|
||||
print('handel_page_and_code Failed!')
|
||||
return 'handel_page_and_code Failed'
|
||||
###########################################^^^^
|
||||
######import pdb;pdb.set_trace()
|
||||
#######import pdb;pdb.set_trace()
|
||||
return handel_page_and_code
|
||||
|
||||
|
||||
@@ -3759,7 +3759,7 @@ def process_emails():
|
||||
os.system("taskkill /f /im chromedriver.exe")
|
||||
os.system("taskkill /f /im Camoufox.exe")
|
||||
#input('>>>')
|
||||
# ####import pdb;pdb.set_trace()
|
||||
# #####import pdb;pdb.set_trace()
|
||||
codexs=Gmail(value,val2,browser_proxy=browser_proxy)
|
||||
print('codexs>>>>>>>>>>>>>>>',codexs)
|
||||
minimize_camoufox(title_hint="Camoufox")
|
||||
@@ -3768,12 +3768,12 @@ def process_emails():
|
||||
#print(codexs)
|
||||
# code=codexs.get_code()
|
||||
# print(code)
|
||||
# #####import pdb;pdb.set_trace() chek_logo >>> jump_to_sec
|
||||
# ######import pdb;pdb.set_trace() chek_logo >>> jump_to_sec
|
||||
|
||||
# input('>>>')
|
||||
#
|
||||
#
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
try:
|
||||
if codexs.flag_user==False:
|
||||
check_cookiesx=codexs.flag_user_sg
|
||||
@@ -3781,8 +3781,8 @@ def process_emails():
|
||||
|
||||
check_cookiesx=(codexs.check_cookies())
|
||||
print('check_cookiesx>>>>>>>>>>',check_cookiesx)
|
||||
import pdb;pdb.set_trace()
|
||||
#import pdb;pdb.set_trace()
|
||||
##import pdb;pdb.set_trace()
|
||||
#check_cookiesx=str(codexs.check_cookies())
|
||||
# if codexs.flag_exit==True:
|
||||
# codexs.flag_exit=None
|
||||
@@ -3995,7 +3995,7 @@ def process_emails():
|
||||
continue
|
||||
|
||||
# try:
|
||||
# #####import pdb;pdb.set_trace()
|
||||
# ######import pdb;pdb.set_trace()
|
||||
#ظdata = eval(check_cookiesx)
|
||||
# check_cookiesx = json.dumps(data, indent=4)
|
||||
# except Exception as e:
|
||||
@@ -4016,9 +4016,9 @@ def process_emails():
|
||||
|
||||
|
||||
send_green_status(server)
|
||||
# #####import pdb;pdb.set_trace()
|
||||
# ######import pdb;pdb.set_trace()
|
||||
result=main(path_png_file,browser,os.path.join(path_file,value),get_cookes=check_cookiesx,codex=codexs,value=value, val2=val2,browser_proxy=browser_proxy)
|
||||
#####import pdb;pdb.set_trace()
|
||||
######import pdb;pdb.set_trace()
|
||||
###################
|
||||
# fail_15_send_sec_code_app_code
|
||||
# if '11111111' in result:
|
||||
|
||||
Reference in New Issue
Block a user