闲社服务运行正常AI智能体自动化平台
l

领英自动化

技能标识:linkedin

LinkedIn automation skill — search people and companies, fetch profiles, send messages and InMails, manage connections, create posts, react, comment. Supports Sales Navigator.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

领英自动化

LinkedIn 技能

你可以使用 linkedin —— 一个用于 LinkedIn 自动化的 CLI 工具。它可以用来获取个人资料、搜索人员和公司、发送消息、管理连接、创建帖子、点赞、评论等。

每个命令都会向 Linked API 发送请求,该 API 会运行一个真实的云浏览器来在 LinkedIn 上执行操作。操作不是即时完成的——根据复杂程度,预计需要 30 秒到几分钟。

如果 linkedin 不可用,请安装它:

bash
npm install -g @linkedapi/linkedin-cli

身份验证

如果命令以退出码 2(身份验证错误)失败,请让用户设置他们的账户:

  1. 1. 前往 app.linkedapi.io 注册或登录
  2. 连接他们的 LinkedIn 账户
  3. 从控制面板复制 Linked API Token 和 Identification Token

一旦用户提供了令牌,运行:

bash
linkedin setup --linked-api-token=TOKEN --identification-token=TOKEN

全局标志

始终使用 --json 和 -q 以获得机器可读的输出:

bash
linkedin --json -q

标志描述
--json结构化 JSON 输出
--quiet / -q
抑制 stderr 进度消息 | | --fields name,url,... | 在输出中选择特定字段 | | --no-color | 禁用颜色 | | --account Name | 为此命令使用特定账户 |

输出格式

成功:
json
{success: true, data: {name: John Doe, headline: Engineer}}

错误:
json
{success: false, error: {type: personNotFound, message: Person not found}}

退出码 0 表示 API 调用成功——始终检查 success 字段以了解操作结果。非零退出码表示基础设施错误:

退出码含义
0成功(检查 success 字段——操作可能返回了类似person not found的错误)
1
一般/意外错误 |
| 2 | 缺少或无效的令牌 |
| 3 | 需要订阅/套餐 |
| 4 | LinkedIn 账户问题 |
| 5 | 无效参数 |
| 6 | 速率限制 |
| 7 | 网络错误 |
| 8 | 工作流超时(返回 workflowId 用于恢复) |

命令

获取个人资料

bash
linkedin person fetch [flags] --json -q

包含额外数据的可选标志:

  • - --experience – 工作经历
  • --education – 教育经历
  • --skills – 技能列表
  • --languages – 语言
  • --posts – 最近的帖子(使用 --posts-limit N,--posts-since TIMESTAMP)
  • --comments – 最近的评论(使用 --comments-limit N,--comments-since TIMESTAMP)
  • --reactions – 最近的点赞(使用 --reactions-limit N,--reactions-since TIMESTAMP)

仅在需要时请求额外数据——每个标志都会增加执行时间。

bash

基本资料


linkedin person fetch https://www.linkedin.com/in/username --json -q

包含工作经历和教育经历

linkedin person fetch https://www.linkedin.com/in/username --experience --education --json -q

包含最近 5 条帖子

linkedin person fetch https://www.linkedin.com/in/username --posts --posts-limit 5 --json -q

搜索人员

bash
linkedin person search [flags] --json -q

标志描述
--term搜索关键词或短语
--limit
最大结果数 | | --first-name | 按名字筛选 | | --last-name | 按姓氏筛选 | | --position | 按职位筛选 | | --locations | 逗号分隔的地点 | | --industries | 逗号分隔的行业 | | --current-companies | 逗号分隔的当前公司名称 | | --previous-companies | 逗号分隔的前公司名称 | | --schools | 逗号分隔的学校名称 |

bash
linkedin person search --term product manager --locations San Francisco --json -q
linkedin person search --current-companies Google --position Engineer --limit 20 --json -q

获取公司信息

bash
linkedin company fetch [flags] --json -q

可选标志:

  • - --employees – 包含员工
  • --dms – 包含决策者
  • --posts – 包含公司帖子

员工筛选条件(需要 --employees):

标志描述
--employees-limit最大员工检索数
--employees-first-name
按名字筛选 |
| --employees-last-name | 按姓氏筛选 |
| --employees-position | 按职位筛选 |
| --employees-locations | 逗号分隔的地点 |
| --employees-industries | 逗号分隔的行业 |
| --employees-schools | 逗号分隔的学校名称 |
标志描述
--dms-limit最大决策者检索数(需要 --dms)
--posts-limit
最大帖子检索数(需要 --posts) |
| --posts-since | 自 ISO 时间戳以来的帖子(需要 --posts) |

bash

基本公司信息


linkedin company fetch https://www.linkedin.com/company/name --json -q

包含按职位筛选的员工

linkedin company fetch https://www.linkedin.com/company/name --employees --employees-position Engineer --json -q

包含决策者和帖子

linkedin company fetch https://www.linkedin.com/company/name --dms --posts --posts-limit 10 --json -q

搜索公司

bash
linkedin company search [flags] --json -q

标志描述
--term搜索关键词
--limit
最大结果数 | | --sizes | 逗号分隔的规模:1-10,11-50,51-200,201-500,501-1000,1001-5000,5001-10000,10001+ | | --locations | 逗号分隔的地点 | | --industries | 逗号分隔的行业 |

bash
linkedin company search --term fintech --sizes 11-50,51-200 --json -q

发送消息

bash
linkedin message send --json -q

文本最多 1900 个字符。将消息用单引号括起来以避免 shell 解释问题。

bash
linkedin message send https://www.linkedin.com/in/username Hey, loved your latest post! --json -q

获取对话

bash
linkedin message get [--since TIMESTAMP] --json -q

首次调用对话会触发后台同步,可能需要更长时间。后续调用会更快。

bash
linkedin message get https://www.linkedin.com/in/username --json -q
linkedin message get https://www.linkedin.com/in/username --since 2024-01-15T10:30:00Z --json -q

连接管理

检查连接状态

bash
linkedin connection status --json -q

发送连接请求

bash
linkedin connection send [--note text] [--email user@example.com] --json -q

列出连接

bash
linkedin connection list [flags] --json -q

标志描述
--limit最大返回连接数
--since
仅返回自 ISO 时间戳以来的连接(仅当未使用筛选标志时有效) | | --first-name | 按名字筛选 | | --last-name | 按姓氏筛选 | | --position | 按职位筛选 | | --locations | 逗号分隔的地点 | | --industries | 逗号分隔的行业 | | --current-companies | 逗号分隔的当前公司

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 linkedin-skill-1776309383 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 linkedin-skill-1776309383 技能

通过命令行安装

skillhub install linkedin-skill-1776309383

下载

⬇ 下载 linkedin v1.0.0(免费)

文件大小: 4.84 KB | 发布时间: 2026-4-16 16:19

v1.0.0 最新 2026-4-16 16:19
Initial release of the LinkedIn automation skill.

- Automate LinkedIn actions via CLI: search people/companies, fetch profiles, send messages and InMails, manage connections, create posts, comment, and react.
- Sales Navigator support included.
- Flexible search and filter options for people, companies, and connections.
- Cloud browser ensures real, non-instant interactions (actions may take 30 seconds to minutes).
- Machine-readable JSON outputs and robust error reporting by exit codes.
- Simple authentication required via Linked API tokens.
返回顶部