Git Product home page Git Product logo

Comments (5)

awsmhacks avatar awsmhacks commented on June 24, 2024 3

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)

from linkedint.

mdalin avatar mdalin commented on June 24, 2024

+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.

from linkedint.

stormyordos avatar stormyordos commented on June 24, 2024

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)

from linkedint.

darko1x avatar darko1x commented on June 24, 2024

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

from linkedint.

awsmhacks avatar awsmhacks commented on June 24, 2024

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

from linkedint.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.