# Strips the newline character for line in Lines: # print( line ) if proxy_opt == 0: proxye(proxy_num) if proxy_opt != 0: browser = webdriver.Chrome("drivers/chromedriver.exe") browser.get("https://www.instagram.com/accounts/emailsignup/") time.sleep(8) # Fill the email value email_field = browser.find_element_by_name('emailOrPhone') fake_email = line email_field.send_keys(fake_email) print(fake_email) code() if email_opt != 0: fake_email = email.getFakeMail() email_field.send_keys(fake_email) print(fake_email) code() fMail = fake_email[0].split("@") mailName = fMail[0] domain = fMail[1] instCode = verifiCode.getInstVeriCode(mailName, domain, browser) browser.find_element_by_name('email_confirmation_code').send_keys( instCode, Keys.ENTER)
EC.element_to_be_clickable(( By.XPATH, "//*[@id='react-root']/section/main/div/div/div[1]/div/div[4]/div/div/span/span[3]/select/option[27]" ))).click() WebDriverWait(driver, 20).until( EC.element_to_be_clickable( (By.XPATH, "//*[@id='react-root']/section/main/div/div/div[1]/div/div[6]/button" ))).click() time.sleep(3) # fMail = fake_email[0].split("@") mailName = fMail[0] domain = fMail[1] instCode = verifiCode.getInstVeriCode(mailName, domain, driver) driver.find_element_by_name('email_confirmation_code').send_keys( instCode, Keys.ENTER) time.sleep(10) #accepting the notifications. driver.find_element_by_xpath( "/html/body/div[4]/div/div/div/div[3]/button[2]").click() time.sleep(2) #logout driver.find_element_by_xpath( "//*[@id='react-root']/section/nav/div[2]/div/div/div[3]/div/div[5]/span/img" ).click() driver.find_element_by_xpath( "//*[@id='react-root']/section/nav/div[2]/div/div/div[3]/div/div[5]/div[2]/div[2]/div[2]/div[2]/div"