MCPcopy
hub / github.com/Greenwolf/social_mapper / authenticate

Function authenticate

social_mapper.py:882–893  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

880
881
882def authenticate():
883 try:
884 a = login()
885 print(a)
886 session = a
887 if len(session) == 0:
888 sys.exit("[!] Unable to login to LinkedIn.com")
889 print(("[*] Obtained new session: %s" % session))
890 cookies = dict(li_at=session)
891 except Exception as e:
892 sys.exit("[!] Could not authenticate to LinkedIn. %s" % e)
893 return cookies
894
895
896def loadPage(client, url, data=None):

Callers 1

social_mapper.pyFile · 0.85

Calls 1

loginFunction · 0.85

Tested by

no test coverage detected