😎
Templates
Google Analytics
Google Drive
Google Search
Google Sheets
Hugging Face
Johns Hopkins
Jupyter Notebooks
Metrics Store
Microsoft Teams
Microsoft Word
Naas Auth
Send invitation to profile
Tags: #linkedin #invitation #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
# Optional
2
CONTENT = "Hello !"
3
4
RECIPIENTS_URL = "LINKEDIN_URL"
Copied!

Model

Connect to Linkedin API

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

Output

Send the invitation

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