diff --git a/LinkedInt.py b/LinkedInt.py index ca2e327..2b796af 100644 --- a/LinkedInt.py +++ b/LinkedInt.py @@ -52,7 +52,7 @@ def login(): page = loadPage(opener, "https://www.linkedin.com/") parse = BeautifulSoup(page, "html.parser") - csrf = parse.find(id="loginCsrfParam-login")['value'] + csrf = parse.find("input", {"name":"loginCsrfParam"})['value'] login_data = urllib.urlencode({'session_key': username, 'session_password': password, 'loginCsrfParam': csrf}) page = loadPage(opener,"https://www.linkedin.com/uas/login-submit", login_data) @@ -330,6 +330,7 @@ def validateEmail(domain,email): socket.setdefaulttimeout(10) server = smtplib.SMTP(timeout=10) server.set_debuglevel(0) + code = 0 try: print " [*] Checking for valid email: " + str(email) server.connect(mxhost['Host'])