Comments (5)
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.
+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.
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.
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.
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)
- No module named thready HOT 3
- ImportError: No module named thready HOT 2
- Filter by Country
- LinkedIn changed json format - images in html output are broken - fix included HOT 3
- Keyerror 'data' HOT 1
- IndexError: list index out of range
- SyntaxError: Missing parentheses in call to 'print' statements
- UnboundLocalError: local variable 'user' referenced before assignment HOT 2
- Results limitation
- requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.linkedin.com', port=443): Max retries exceeded with url
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linkedint.