Hack Forums
[Python] Twitter Email Checker - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Twitter Email Checker (/showthread.php?tid=4774355)



Twitter Email Checker - Cyb3r_h4ck3r - Apr 11, 2015

Hlw HF in this post I gonna share a simple python code to check twitter emails I'd hope you like it

Code
#!/usr/bin/python


import urllib2, sys

lst = open(sys.argv[1], 'r').read().split("\n")
for email in lst:
    twitter = urllib2.urlopen('https: //twitter[dot]com/users/email_available?email='+email).read()
    if 'Email has already been taken' in twitter:
        print '[+]'+email+' -> Registered !'
    else:
        print '[~]'+email+' -> Not Registerd'