eilonmore / linkedin-private-api

LinkedIn NodeJS API, written in TypeScript.
MIT License
266 stars 79 forks source link

How to get own profile full resume in fr_FR and en_US #31

Open kopax opened 4 years ago

kopax commented 4 years ago

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,

eilonmore commented 3 years ago

Hey @kopax, You can get the LI_AT from the sessions.json file. Regarding the experiences, it probably needs to be fetched separately and be joined to the response. It might need some exploration but I believe it should be pretty straightforward. Tell me if you want to explore this one

kopax commented 3 years ago

Hi @eilonmore and thanks for your reply.

I have not found with your module how I could get my full resume with all methods and having to update the LI_AT token instead of performing username/password login was making it a bit too complex and apparently it can be solved.

I finally ended up using @elevatte/scrapedin which allowed me to get all my LinkedIn profile resume data (there's just this issue: https://github.com/elevatte/scrapedin/issues/8). It also uses the unofficial API so it may break in the future, this is why I may switch back to this module if this one breaks, I am still interested in how to get a full resume.