Links

Get profile information

Tags: #linkedin #profile #resume #naas_drivers #content #snippet #dataframe
Author: Florent Ravenel
Last update: 2023-05-29 (Created: 2022-10-06)
Description: This notebook allows you to access and analyze profile information from LinkedIn.
Disclaimer: This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by Linkedin or any of its affiliates or subsidiaries. It uses an independent and unofficial API. Use at your own risk.
This project violates Linkedin's User Agreement Section 8.2, and because of this, Linkedin may (and will) temporarily or permanently ban your account. We are not responsible for your account being banned.

Input

Import libraries

from naas_drivers import linkedin
import naas

Get your cookies

LI_AT = naas.secret.get("LINKEDIN_LI_AT")
JSESSIONID = naas.secret.get("LINKEDIN_JSESSIONID")

Enter profile URL

PROFILE_URL = "florent-ravenel"

Model

Get identity

df_identity = linkedin.connect(LI_AT, JSESSIONID).profile.get_identity(PROFILE_URL)
df_identity

Get network

df_network = linkedin.connect(LI_AT, JSESSIONID).profile.get_network(PROFILE_URL)
df_network

Get contact

df_contact = linkedin.connect(LI_AT, JSESSIONID).profile.get_contact(PROFILE_URL)
df_contact

Get resume

df_resume = linkedin.connect(LI_AT, JSESSIONID).profile.get_resume(PROFILE_URL)
df_resume

Output

Display result