Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29904

How I can create a Python program to see if the email is available in gmx.com?

$
0
0

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")

Viewing all articles
Browse latest Browse all 29904

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>