Скриншоты кода удалены модератором.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
import time
import sqlite3
import random
from random import choice
driver_a = webdriver.Chrome("chromedriver.exe")
driver_a.get("http://www.temporary-email.org/ru")
mega = sqlite3.connect('mega.db')
cursor = mega.cursor()
cursor.execute("""CREATE TABLE IF NOT EXISTS mega (
EMAIL TEXT,
PASSWORD TEXT
)""")
mega.commit()
time.sleep(20)
driver_a.find_elements_by_xpath("//a[@class='btn btn-1']")[1].click()
time.sleep(3)
driver_a.find_element_by_xpath('//input[@type="text"]').send_keys(ll)
driver_a.find_element_by_xpath('//button[@type="submit"]').click()
driver = webdriver.Chrome("chromedriver.exe")
driver.get("https://mega.nz/")
time.sleep(40)
driver.find_element_by_link_text("Регистрация").click()
time.sleep(25)
driver.find_element_by_id("register-password-registerpage3").send_keys(malll)
driver.find_element_by_id("register-password-registerpage2").send_keys(malll)
driver.find_element_by_id("register-firstname-registerpage2").send_keys(ll)
driver.find_element_by_id("register-lastname-registerpage2").send_keys(ll)
email = driver.find_element_by_id("register-email-registerpage2").send_keys(f'{ll}@enoiv.com')
driver.find_element_by_xpath("//input[@type='checkbox']").click()
driver.find_element_by_id("register-check-registerpage2").click()
time.sleep(5)
driver.find_elements_by_xpath("//button[@type='button']")[2].click()
time.sleep(35)
driver_a.find_element_by_id("mailbox").click()
time.sleep(2)
driver_q = webdriver.Chrome("chromedriver.exe")
driver_q.get("https://www.temporary-email.org/ru/view/zrb7E<img src="https://habrastorage.org/webt/63/d1/6c/63d16cf6857fd426807835.jpeg" alt="image"/><img src="https://habrastorage.org/webt/63/d1/6c/63d16cf7e5fb3623685440.jpeg" alt="image"/>V8BepMaLMvDNWvjap9X#viewbox")
time.sleep(1)
driver_q.find_element_by_xpath('//a[@target="blank"]').click()