😎
Templates
Google Analytics
Google Drive
Google Search
Google Sheets
Hugging Face
Johns Hopkins
Jupyter Notebooks
Metrics Store
Microsoft Teams
Microsoft Word
Naas Auth
Send message to profile
Tags: #linkedin #message #naas_drivers
Author: Florent Ravenel

Input

Import library

1
from naas_drivers import linkedin
Copied!

Get your cookies

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

Enter content and recipient URL

1
CONTENT = "Hello !"
2
RECIPIENTS_URL = "LINKEDIN_URL"
Copied!

Model

Connect to linkedin API

1
result = linkedin.connect(LI_AT, JSESSIONID)
Copied!

Output

Send the message

1
result = linkedin.message.send(content=CONTENT,
2
recipients_url=RECIPIENTS_URL)
Copied!
Copy link
Edit on GitHub