Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Names you have entered in emails.txt is taken #2

Open
pekempy opened this issue Jun 7, 2022 · 4 comments
Open

Names you have entered in emails.txt is taken #2

pekempy opened this issue Jun 7, 2022 · 4 comments
Labels
Fixed Fixed the issue

Comments

@pekempy
Copy link

pekempy commented Jun 7, 2022

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())```
@wokesdev
Copy link

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 ^^

@pekempy
Copy link
Author

pekempy commented Jun 29, 2022

@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!

@wankio
Copy link

wankio commented Jul 1, 2022

@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

@defaltastra
Copy link
Contributor

i've made a fix for it #3 if able to merge

thelinuxuser-choice added a commit that referenced this issue Jul 28, 2022
Update to issue #2 by updating it with new docs..
@thelinuxuser-choice thelinuxuser-choice added the Fixed Fixed the issue label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Fixed the issue
Projects
None yet
Development

No branches or pull requests

7 participants
@pekempy @wankio @defaltastra @wokesdev @thelinuxuser-choice and others