index

Naas

LinkedIn - Get comments from post

Input

from naas_drivers import linkedin

Get your cookies

How to get your cookies ?

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

Enter post URL

POST_URL = "POST_URL"

Model

Get the information return in a dataframe. Available columns :

  • PROFILE_URN : LinkedIn unique profile id

  • PROFILE_ID : LinkedIn public profile id

  • FIRSTNAME

  • LASTNAME

  • TEXT

  • OCCUPATION

  • ACTIVITY_COMMENTS

  • ACTIVITY_LIKES

  • DISTANCE

  • POST_URL

df = linkedin.connect(LI_AT, JSESSIONID).post.get_comments(POST_URL)

Output

Display result

df