From 3f0dc4b747f3d4bd5fe4abe27d488ac635d2f35b Mon Sep 17 00:00:00 2001 From: leesoh Date: Wed, 14 Mar 2018 14:50:32 -0600 Subject: [PATCH] Add logon failure message --- LinkedInt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LinkedInt.py b/LinkedInt.py index 5faa7b4..1f6302d 100644 --- a/LinkedInt.py +++ b/LinkedInt.py @@ -14,6 +14,7 @@ import sys import re import time import requests +import pdb import subprocess import json import argparse @@ -59,6 +60,7 @@ def login(): try: cookie = cookiejar._cookies['.www.linkedin.com']['/']['li_at'].value except: + print "[!] Cannot log in" sys.exit(0) cookiejar.save() @@ -122,7 +124,6 @@ def get_search(): # Do we want to automatically get the company ID? - if bCompany: if bAuto: # Automatic @@ -415,6 +416,7 @@ if __name__ == '__main__': print "[!] Incorrect choice, please select a value from (auto,full,firstlast,firstmlast,flast,first.last,fmlast)" print + pdb.set_trace()