tried to create a Python program to check if my email is available: Basically I have an email in gmx.com that the firts 3 letters are nld but the next 3 of them are missing, I created a dictionary call email.txt that contains from a-z and 0-9 to see which emails are not available and from there try to login with my password. I'm kinda new in Python, so any links with guides I will appreciate it.
import requests
url = 'https://onereg-email-suggest.gmx.com/email-alias/availability'
arg = open('email.txt', 'r')
for line in arg:
email = line.strip()
http = request.post(url, data={'nld' + password + 'gmx.com'})
content = http.content
if "This choice of email address has already been assigned" in content:
print ("Not available")
break
else:
print("Available")