Links

Get stats from post

Tags: #linkedin #post #stats #naas_drivers #snippet #content #dataframe
Author: Florent Ravenel
Description: This notebook provides a way to track and analyze the performance of posts on 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

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 stats from post

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

Output

Display result

df