Skip to content

Commit

Permalink
Update linkedindumper.py
Browse files Browse the repository at this point in the history
improve debug message in case of exceptions
  • Loading branch information
l4rm4nd authored Sep 14, 2023
1 parent a66da8a commit b0b5d91
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions linkedindumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,8 @@ def show(j):
print("[i] Successfully crawled " + str(len(employee_dict)) + " unique " + str(company) + " employee(s). Hurray ^_-")

except Exception as e:
# likely authorization error due to incorrect 'login' cookie
# otherwise the script is broken or the api has been changed
print("[!] Authenticated session cookie required.")
print(" > Set variable permanently in script or use the '--cookie' CLI flag!")
print("[!] Exception. Either API has changed and this script is broken or authentication failed.")
print(" > Set 'li_at' variable permanently in script or use the '--cookie' CLI flag!")
print("[debug] " + str(e))
else:
print()
Expand Down

0 comments on commit b0b5d91

Please sign in to comment.