eilonmore / linkedin-private-api Goto Github PK
View Code? Open in Web Editor NEWLinkedIn NodeJS API, written in TypeScript.
License: MIT License
LinkedIn NodeJS API, written in TypeScript.
License: MIT License
View someones profile, such that they get a notification that you "viewed their profile" ๐ .
Is it possible to login with different users or when I use this library It always tries to connect with only one user?
I login successfully with my account, but it doesn't work with other accounts.
I receive 401 and this message in the error:
data: {
login_result: 'CHALLENGE',
challenge_url: 'https://www.linkedin.com/checkpoint/lg/direct-login-submit?addDetailedLoginResult=add&dropLiatCookie=drop&csrfToken=ajax%3A4089481443116134801&pSIdString=525b61a1-eae3-40b8-81cc-7896ef76cba2&ut=14jKJFYsFWWak1'
}
It doesn't login even with useCache: false.
Thanks in advance,
Hey is there any way to use this with an account which has 2 factor enabled ?
I am trying to search by location (geoUrn)- simple text (California) but it's not returning any result
Anytime I pass in valid proxy params I get the error
Client network socket disconnected before secure TLS connection was established
Tried changing it so it passes the proxy params into the request method too but same issue. The proxies I'm testing with are 100% working, and I'm definitely passing in the host, port, and auth data in correctly. I've tried setting the protocol as well but still having this issue.
It looks like it's more of an axios issue but wondering if anyone knows what might be going on?
If I am trying to search by Title without passing firstName or lastName then it's returning me data with Title but no firstName + lastName in result
I've been able to get this to work properly via node. But when I try to run it via a service worker in a chrome extension the request succeeds but the results are totally different. For example, there are always 0 search results when calling searchOwnConnections
. Any idea why?
I always receive this error, no matter what I try, my login credentials are correct though...
Code:
const username = process.env.NEXT_PUBLIC_LINKEDIN_USERNAME;
const password = process.env.NEXT_PUBLIC_LINKEDIN_PASSWORD;
const client = new Client();
await client.login.userPass({ username: username, password: password });
const jobsScroller = await client.search.searchJobs({
keywords: 'React',
filters: { location: 'Switzerland' },
limit: 20,
skip: 5,
});
const [someReactJobHit] = await jobsScroller.scrollNext();
console.log(someReactJobHit);
Hi,
I am not able to scroll on all connections. when I put a skip bigger than 950 the searchOwnConnections returns an empty list.
Is there a way to scroll over all connections?
Also, if there is a way to fork the repo and modify it inorder to achieve more covered connections, please tell me.
I get the cookie by chrome extension for users, now i would like to use it with your api instead of user password do you think that possible ?
I did saw an implementation but i don't know how i can do it on yours !
https://github.com/trieb-work/linkedin-voyager-sdk
Is it possible to add in searchFilters in the searchPeople call the user profileId?
Hello @eilonmore ,
First, congratulation for this library.
I am currently trying to understand how I can post a Blog Article (not a Post, which the number of word is limited whereas Blog Article is not) on Linkedin (and particularly for a Company page, not for a personnal). I have tried to read the Linkedin API developper page, but I don't find it very clear reagarding Blog Article post (yet quite clear regarding Post).
Do you have any idea where is the endpoint to post Blog Article (not Post) ?
Hi! Thanks for the cool job.
Have you tested how fast linkdein bans an account when you use its api intensively?
is it possible to get the contact details if the profile provides them? I noticed getProfile doesn't include the users contact details (email, website, etc)
FOUND:
Running the example provided here: https://github.com/eilonmore/linkedin-private-api/blob/master/examples/profile.ts results in status 400 generated.
EXPECTED:
Response with respective profile data types.
Thank you for investigating!
As for now, you can only send messages to existing conversations.
I want to add the ability to start a new conversation with any profile.
I need the job description and the job URL but I don't think those are returned by the library
I'm trying to send an automated invite via sendInvitation()
method, but this always results in a 403
response from LinkedIn API with a security challenge link.
I'll add that the login method works fine, also I can call Search People API, which works, but data is partly anonymized (user public identifier and profile link are set to UNKNOWN
values, profile.fistName
and profile.lastName
are set to empty strings).
I'm wondering if anyone encountered similar issues?
Library version: v1.1.1
Node version: v14.17.6
Steps to reproduce:
import { Client } from "linkedin-private-api";
const username = process.env.USERNAME as string;
const password = process.env.PASSWORD as string;
const profileId = process.env.PROFILE_ID as string;
const trackingId = process.env.TRACKING_ID as string;
async function main() {
try {
const client = new Client();
await client.login.userPass({
username,
password,
});
await client.invitation.sendInvitation({
profileId,
trackingId,
});
} catch (err) {
console.log(err.response.data);
}
}
main();
After client.profile.getProfile() called, the json result is huge but basic info are not readable...
like:
'*profileEducations': 'urn:li:collectionResponse:jbS7v/aiGf+n48yZ43Ev0e9BPKSkfWZWLisSWcr5P4A=',
Experience is not showing at all..
I worked locally great but didn't work on liver Ubuntu server, why ?
Is it possible to obtain the posts that are outlined in the home feed?
How to search for specific country like India,and can we use this for not a well known company which can be tier-3 or early edge startup how to find company ids and country id??
Add support to add a note when sending an invitation, because improves the success when adding new connections.
Can we support this? Also I can make a pull request if there is a simple way of adding this feature.
Getting this Request failed with status code 400
error on using the getOwnProfile function as given in the example code
Hi!
I want to reply in a specific conversation.
There are cases where I have multiple conversations with the same person.
How can I reply to a specific conversation by using conversation id?
Hi @eilonmore , thanks for sharing this.
I am currently doing my own resume builder and I am testing const profile = await client.profile.getOwnProfile();
This work great to find the profile information in the two languages I am maintaining, however, I have not found a way to retrieve my full resume (in the same languages),
It seems that the experiences are not included in the profile, is that possible?
Lastly, I am looking at https://www.npmjs.com/package/linkedin-profile-scraper , and both together seems to give me the desired results, however, this required to get the LI_AT
cookie value, is there a way (or a possible way) I can retrieve it from this lib after calling login.userPass
?
Kindly,
ืฉืืื ืจื,
ืื ื ืืืฉ ืืื.
ืืืืื ืืื ื ืจืืฆื ืืืฉืื ืกืืกืื ืืฆืืจื ืืื ืืืืขื ืืช ืฉื ืคืจืืคืื ืคืืืกืืืง ืืื ืื ื ืืืืข ืืื ?
ืชืืื ืืจืืฉ ืขื ืืชืฉืืื.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.