| name | linkedin-cli |
| description | A bird-like LinkedIn CLI for searching profiles, checking messages, and summarizing your feed using session cookies. |
| homepage | https://github.com/clawdbot/linkedin-cli |
| metadata | {"clawdbot":{"emoji":"💼","requires":{"bins":["python3"],"env":["LINKEDIN_LI_AT","LINKEDIN_JSESSIONID"]}}} |
LinkedIn CLI (lk)
A witty, punchy LinkedIn CLI inspired by the bird CLI. It uses session cookies for authentication, allowing for automated profile scouting, feed summaries, and message checks without a browser.
Setup
- Extract Cookies: Open LinkedIn in Chrome/Firefox.
- Go to DevTools (F12) -> Application -> Cookies ->
www.linkedin.com.
- Copy the values for
li_at and JSESSIONID.
- Set them in your environment:
export LINKEDIN_LI_AT="your_li_at_value"
export LINKEDIN_JSESSIONID="your_jsessionid_value"
Usage
lk whoami: Display your current profile details.
lk search "query": Search for people by keywords.
lk profile <public_id>: Get a detailed summary of a specific profile.
lk feed -n 10: Summarize the top N posts from your timeline.
lk messages: Quick peek at your recent conversations.
lk check: Combined whoami and messages check.
Dependencies
Requires the linkedin-api Python package:
pip install linkedin-api
Authors