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
- 1. 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:
CODEBLOCK0
Usage
- -
lk whoami: Display your current profile details. - INLINECODE5 : Search for people by keywords.
- INLINECODE6 : Get a detailed summary of a specific profile.
- INLINECODE7 : Summarize the top N posts from your timeline.
- INLINECODE8 : Quick peek at your recent conversations.
- INLINECODE9 : Combined whoami and messages check.
Dependencies
Requires the linkedin-api Python package:
CODEBLOCK1
Authors
LinkedIn CLI (lk)
一个受 bird CLI 启发、风格诙谐犀利的 LinkedIn 命令行工具。它使用会话 Cookie 进行身份验证,无需浏览器即可实现自动化个人资料浏览、信息流摘要和消息查看。
设置
- 1. 提取 Cookie:在 Chrome/Firefox 中打开 LinkedIn。
- 进入 开发者工具 (F12) -> 应用 -> Cookie -> www.linkedin.com。
- 复制 li_at 和 JSESSIONID 的值。
- 在环境变量中设置它们:
bash
export LINKEDIN
LIAT=你的
liat_值
export LINKEDIN
JSESSIONID=你的jsessionid_值
使用方法
- - lk whoami:显示你当前的个人资料详情。
- lk search 查询内容:通过关键词搜索人员。
- lk profile <公开ID>:获取特定个人资料的详细摘要。
- lk feed -n 10:汇总你时间线上的前 N 条帖子。
- lk messages:快速查看你最近的对话。
- lk check:综合执行 whoami 和消息检查。
依赖项
需要 linkedin-api Python 包:
bash
pip install linkedin-api
作者