Update main.py
gmail fail chek
This commit is contained in:
215
main.py
215
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))
|
||||
|
||||
@@ -1150,8 +1150,75 @@ class ea_fucking():
|
||||
return 'nime'
|
||||
except:
|
||||
pass
|
||||
|
||||
##import pdb;pdb.set_trace()
|
||||
#fucking_per
|
||||
try:
|
||||
print('start chek')
|
||||
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()
|
||||
except:
|
||||
pass
|
||||
#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)
|
||||
if location:
|
||||
print('pERSIAN MODDDDDDDDDDDDDDDD !!!!!!!!!!! ')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press("enter")
|
||||
sleep(15)
|
||||
for i in range(5):
|
||||
try:
|
||||
#fucking_per_3.PNG
|
||||
location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'ea_logo.PNG'), confidence=0.8)
|
||||
except:
|
||||
location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'ea_logo.PNG'), confidence=0.8)
|
||||
if location:
|
||||
pyautogui.click(pyautogui.center(location))
|
||||
break
|
||||
sleep(3)
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
# pyautogui.press('tab')
|
||||
pyautogui.press("enter")
|
||||
sleep(10)
|
||||
for i in range(20):
|
||||
try:
|
||||
location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'contniue.PNG'), confidence=0.8)
|
||||
if location:
|
||||
pyautogui.click(pyautogui.center(location))
|
||||
return True
|
||||
except:
|
||||
print('notfund contniue contniue contniue')
|
||||
for i in range(5):
|
||||
try:
|
||||
#fucking_per_3.PNG
|
||||
location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'ea_logo.PNG'), confidence=0.8)
|
||||
except:
|
||||
location = pyautogui.locateOnScreen(os.path.join(self.path_png_file,r'ea_logo.PNG'), confidence=0.8)
|
||||
if location:
|
||||
pyautogui.click(pyautogui.center(location))
|
||||
break
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
pyautogui.press('tab')
|
||||
#import pdb;pdb.set_trace()
|
||||
except:
|
||||
pass
|
||||
#import pdb;pdb.set_trace()'''
|
||||
sleep(6)
|
||||
pyautogui.press('tab')#,
|
||||
sleep(1)
|
||||
@@ -1469,7 +1536,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
|
||||
@@ -1720,7 +1787,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'
|
||||
|
||||
|
||||
@@ -2379,7 +2446,9 @@ class Gmail:
|
||||
|
||||
self.browser_context = self.ctx_manager.start()
|
||||
self.page = self.browser_context.new_page()
|
||||
print('ineeeeeeeeeeeeeeee',self.flag)
|
||||
if self.flag==True:
|
||||
print('ineeeeeeeeeeeeeeee',self.flag)
|
||||
user=self.send_username(name)
|
||||
if user==True:
|
||||
time.sleep(8)
|
||||
@@ -2464,7 +2533,21 @@ class Gmail:
|
||||
|
||||
def _check_for_errors(self):
|
||||
"""این تابع تمام بررسیهای خطای متنی و مبتنی بر عنصر کد اصلی را پوشش میدهد."""
|
||||
sleep(10)
|
||||
page_content = self.page.content()
|
||||
#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'
|
||||
|
||||
if "Secure, smart, and easy to use email" in page_content or "Confirm you’re not a robot" in page_content:
|
||||
return 'del_prof'
|
||||
|
||||
if "For work" in page_content or "Confirm you’re not a robot" in page_content:
|
||||
return 'del_prof'
|
||||
|
||||
if "Get more done with Gmail. Now integrated with Google Chat, Google Meet, and more, all in one place" in page_content or "Confirm you’re not a robot" in page_content:
|
||||
return 'del_prof'
|
||||
|
||||
if "Verify it" 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")
|
||||
@@ -2554,7 +2637,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
|
||||
@@ -2570,6 +2653,7 @@ class Gmail:
|
||||
except:
|
||||
self.page.locator("//*[contains(text(), 'Next')]").first.click()
|
||||
alert=self._check_for_errors()
|
||||
print('alert from accounbt >>>>>>>>>>>> ',alert)
|
||||
if alert==None:
|
||||
|
||||
return True
|
||||
@@ -2816,7 +2900,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
|
||||
@@ -2833,9 +2917,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
|
||||
@@ -2844,7 +2928,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
|
||||
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
|
||||
@@ -2863,7 +2947,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
|
||||
@@ -2877,7 +2961,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()
|
||||
@@ -2891,7 +2975,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
|
||||
@@ -2907,9 +2991,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
|
||||
@@ -2918,7 +3002,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!')
|
||||
@@ -2940,7 +3024,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
|
||||
@@ -2956,9 +3040,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
|
||||
@@ -2967,7 +3051,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
|
||||
@@ -2993,7 +3077,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
|
||||
@@ -3010,9 +3094,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
|
||||
@@ -3044,9 +3128,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()
|
||||
@@ -3060,7 +3144,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
|
||||
@@ -3077,9 +3161,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
|
||||
@@ -3088,7 +3172,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
|
||||
|
||||
|
||||
@@ -3128,7 +3212,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
|
||||
@@ -3144,9 +3228,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:
|
||||
@@ -3157,7 +3241,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)
|
||||
@@ -3190,7 +3274,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
|
||||
@@ -3207,9 +3291,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
|
||||
@@ -3218,7 +3302,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
|
||||
|
||||
@@ -3234,7 +3318,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
|
||||
@@ -3251,9 +3335,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
|
||||
@@ -3262,7 +3346,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
|
||||
|
||||
|
||||
@@ -3518,11 +3602,12 @@ def process_emails():
|
||||
server = os.getenv('SERVER_NAME')
|
||||
print(db_config)
|
||||
manager = EmailGroupManager(db_config)
|
||||
#t21993837@gmail.com : xxx093382
|
||||
#group_data=[{
|
||||
#t21993837@gmail.com : xxx093382'
|
||||
|
||||
# group_data=[{
|
||||
# "id":'2',
|
||||
# "email":'eatestfornewbot9@gmail.com' ,
|
||||
# "email_password": 'pass:aezakmi90',
|
||||
# "email":'maeqh281wbd28wdwc@gmail.com' ,
|
||||
# "email_password": 'maryam_1381',
|
||||
# }]
|
||||
|
||||
# group_data=[{
|
||||
@@ -3633,6 +3718,7 @@ def process_emails():
|
||||
os.system("taskkill /f /im chromedriver.exe")
|
||||
os.system("taskkill /f /im Camoufox.exe")
|
||||
#input('>>>')
|
||||
# #import pdb;pdb.set_trace()
|
||||
codexs=Gmail(value,val2,browser_proxy=browser_proxy)
|
||||
print('codexs>>>>>>>>>>>>>>>',codexs)
|
||||
minimize_camoufox(title_hint="Camoufox")
|
||||
@@ -3641,23 +3727,36 @@ 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()
|
||||
try:
|
||||
if codexs.flag_user==False:
|
||||
check_cookiesx=codexs.flag_user_sg
|
||||
else:
|
||||
|
||||
check_cookiesx=(codexs.check_cookies())
|
||||
print(check_cookiesx)
|
||||
# #import pdb;pdb.set_trace()
|
||||
print('check_cookiesx>>>>>>>>>>',check_cookiesx)
|
||||
|
||||
#import pdb;pdb.set_trace()
|
||||
#check_cookiesx=str(codexs.check_cookies())
|
||||
# if codexs.flag_exit==True:
|
||||
# codexs.flag_exit=None
|
||||
# codexs.end()
|
||||
# codexs=Gmail(value,val2,browser_proxy=browser_proxy)
|
||||
# check_cookiesx=str(codexs.check_cookies())
|
||||
if 'kill' in check_cookiesx:
|
||||
codexs.end()
|
||||
return 'continue_kill'
|
||||
if 'del_prof' in check_cookiesx:
|
||||
codexs.end()
|
||||
sleep(5)
|
||||
print('!!!!!!!!!!!!!!start del profile,',value)
|
||||
clear_selected_folders([value])
|
||||
return 'del_prof'
|
||||
if 'fail' in check_cookiesx:
|
||||
with open('woring_gmail.txt','a')as gy:
|
||||
gy.write(f"{str(get_tehran_time())} : {value} : {'passw_eror'}\n")
|
||||
@@ -3670,6 +3769,7 @@ def process_emails():
|
||||
success=False,
|
||||
error_message="passw_eror")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
continue
|
||||
if 'pas_eror' in check_cookiesx:
|
||||
with open('woring_gmail.txt','a')as gy:
|
||||
@@ -3683,6 +3783,7 @@ def process_emails():
|
||||
success=False,
|
||||
error_message="passw_eror")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
continue
|
||||
if 'help keep your account secure' in check_cookiesx:
|
||||
with open('woring_gmail.txt','a')as gy:
|
||||
@@ -3696,6 +3797,7 @@ def process_emails():
|
||||
success=False,
|
||||
error_message="help keep your account secure")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
continue
|
||||
if 'block_acses' in check_cookiesx:
|
||||
with open('woring_gmail.txt','a')as gy:
|
||||
@@ -3710,6 +3812,7 @@ def process_emails():
|
||||
success=False,
|
||||
error_message="Unable to access a Google product")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
continue
|
||||
if 'robot' in check_cookiesx:
|
||||
with open('woring_gmail.txt','a')as gy:
|
||||
@@ -3724,6 +3827,7 @@ def process_emails():
|
||||
success=False,
|
||||
error_message="nead_very_fy")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
continue
|
||||
if 'userx' in check_cookiesx:
|
||||
with open('LOGS.txt','a')as gy:
|
||||
@@ -3737,6 +3841,7 @@ def process_emails():
|
||||
success=False,
|
||||
error_message="userx")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
continue
|
||||
|
||||
if 'userx2' in check_cookiesx:
|
||||
@@ -3751,6 +3856,7 @@ def process_emails():
|
||||
success=False,
|
||||
error_message="pasword_eror")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
continue
|
||||
if 'fail_cookes' in check_cookiesx:
|
||||
os.system("taskkill /f /im chrome.exe")
|
||||
@@ -3760,6 +3866,8 @@ def process_emails():
|
||||
os.system("taskkill /f /im chromedriver.exe")
|
||||
os.system("taskkill /f /im Camoufox.exe")
|
||||
clear_selected_folders([value])
|
||||
codexs.end()
|
||||
return 'continue_fail_cookes'
|
||||
'''with open('woring_gmail.txt','a')as gy:
|
||||
gy.write(f"{str(get_tehran_time())} : {value} : {'fail_cookes'}\n")
|
||||
file_data["username"]=value
|
||||
@@ -3834,7 +3942,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:
|
||||
@@ -3855,9 +3963,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:
|
||||
@@ -3979,7 +4087,8 @@ def process_emails():
|
||||
fxs.write(str(e)+'\n')
|
||||
return str(e)
|
||||
|
||||
|
||||
process_emails()
|
||||
input('>>>>')
|
||||
if __name__ == "__main__":
|
||||
while True:
|
||||
p = Process(target=process_emails)
|
||||
|
||||
Reference in New Issue
Block a user