Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not authenticate, creds are good. #16

Open
khatfull opened this issue Apr 22, 2019 · 5 comments
Open

Could not authenticate, creds are good. #16

khatfull opened this issue Apr 22, 2019 · 5 comments

Comments

@khatfull
Copy link

khatfull commented Apr 22, 2019

Got one good run pulling data as expected, subsequent tries produce the error:

Could not authenticate to linkedin. 'NoneType' object has no attribute '__getitem__'

Creds are verified good and I'm able to login to LinkedIn from two different machines.

Any idea?

@mdalin
Copy link

mdalin commented May 2, 2019

+1 on this issue. Never used this tool before, but would really like to try it out. Verified my creds are good. Everything is up to date.

@talilama talilama mentioned this issue May 4, 2019
@stormyordos
Copy link

Had this problem this week. It seems Linkedin changed their login page's code. This workaround works with the new version:
in def login(),

    page = loadPage(opener, "https://www.linkedin.com/uas/login")
    parse = BeautifulSoup(page, "html.parser")
    #csrf = parse.find(id="loginCsrfParam")['value']
    for link in parse.find_all('input'):
            name = link.get('name')
            if name == 'loginCsrfParam':
                    csrf = link.get('value')

    login_data = urllib.urlencode({'session_key': username, 'session_password': password, 'loginCsr$
    page = loadPage(opener,"https://www.linkedin.com/checkpoint/lg/login-submit", login_data)

@awsmhacks
Copy link

I think a little was cutoff from the copy paste (see the $ at the end of loginCsr)
This should work

        page = loadPage(opener, "https://www.linkedin.com/uas/login")
        parse = BeautifulSoup(page, "html.parser")
        csrf = ""
        for link in parse.find_all('input'):
                name = link.get('name')
                if name == 'loginCsrfParam':
                        csrf = link.get('value')

        login_data = urllib.urlencode({'session_key': username, 'session_password': password, 'loginCsrfParam': csrf})
        page = loadPage(opener,"https://www.linkedin.com/checkpoint/lg/login-submit", login_data)

@darko1x
Copy link

darko1x commented Jun 29, 2019

noob question here.
i have the same problem, do i need to just copy past the code in def login() or replace it ??

@awsmhacks
Copy link

noob question here.
i have the same problem, do i need to just copy past the code in def login() or replace it ??

You would replace the code. You could also just copy/paste the whole file from this commit that has the fix https://github.com/mdsecactivebreach/LinkedInt/blob/8d6b1b2ec620fe7fbc6c115966f3b8c3e18c1e94/LinkedInt.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants