Names you have entered in emails.txt is taken
Getting this error every time even though I'm sure they're not- it's also no longer inputting text into Mega in the chrome browser.
Note: I did make a couple of script changes
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager```
and
#driver = webdriver.Chrome(path)
driver = webdriver.Chrome(ChromeDriverManager().install())```
I don't know if you still need the answer, but i can got this code working is because of your changes there for the webdriver. So i will just answer it, maybe other people will need it, too.
So, after i analyze it, the problem is this code will try to find Accept Cookie element on the HTML, which is not shown if we already often use the browser to open MEGA or maybe if we already accept the cookie one time (i don't know exact requirement for the "accept cookie" form to show up).
Then, because that form is missing, this code will throw the error, and output the text like, [Error] An error occured while Creating a Account Reasons are [Names you have entered in emails.txt is taken].
So, the fix for this is just comment out this two line, then it will not trying to find the missing form, and you will good to go.
From this,
print(f"{GREEN}[Mega] Debug: Cookie")
driver.find_element_by_xpath("//*[@id='bodyel']/section[1]/div[4]/div[1]/div[2]/button[1]").click()
To this,
# print(f"{GREEN}[Mega] Debug: Cookie")
# driver.find_element_by_xpath("//*[@id='bodyel']/section[1]/div[4]/div[1]/div[2]/button[1]").click()
Anyway, thank you for your help, too ^^
@wokesdev thanks for that! I ended up writing my own python script with megatools for it which is fully CLI based so no need for the browser interaction, but I'm glad you got it working!
@wokesdev thanks for that! I ended up writing my own python script with megatools for it which is fully CLI based so no need for the browser interaction, but I'm glad you got it working!
can you share it ?, i tested many temp email website, mail.tm is fastest but dont know how to make python automatic
i've made a fix for it #3 if able to merge