Links
Comment on page

Get followers from network

Tags: #linkedin #network #followers #naas_drivers #content #snippet #dataframe
Author: Florent Ravenel
Last update: 2023-05-29 (Created: 2021-06-17)
Description: This notebook provides a guide to gaining followers on LinkedIn by leveraging your existing network.
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

Get your cookies

LI_AT = "YOUR_COOKIE_LI_AT" # EXAMPLE AQFAzQN_PLPR4wAAAXc-FCKmgiMit5FLdY1af3-2
JSESSIONID = "YOUR_COOKIE_JSESSIONID" # EXAMPLE ajax:8379907400220387585

Model

Note : Due to follower privacy, it will not match with the exact number of followers.
Get the information return in a dataframe. Available columns :
  • PROFILE_URN : LinkedIn unique profile id
  • PROFILE_ID : LinkedIn public profile id
  • FIRSTNAME
  • LASTNAME
  • OCCUPATION
  • FOLLOWER_COUNT
  • FOLLOWING
  • FOLLOWING_TYPE
  • INFLUENCER
df = linkedin.connect(LI_AT, JSESSIONID).network.get_followers(limit=-1)

Output

Display result

df