文案撰写助手
产品营销与UX文案生
基于Playwright的LinkedIn自动化工具,支持持久化浏览器会话。可完成发帖(含图片上传)、评论(支持@提及)、编辑/删除评论、转发、动态阅读、数据分析、点赞监控、互动追踪等功能,并内置带审批流程的内容日历系统。
帮助营销人员高效管理LinkedIn社交资产,减少重复性手动操作。通过自动化发帖、评论互动与数据追踪,团队可保持稳定的品牌曝光节奏,及时响应受众反馈,同时借助内容日历实现跨部门协作审批,确保对外信息一致合规。
落地案例:某B2B企业市场专员需每日发布行业洞察并维护高管账号互动。使用该工具配置持久化会话后,系统自动读取动态流抓取热点话题,按预设日程发布图文帖子;当监测到关键客户点赞时,触发评论建议提醒,专员审核后一键@提及对方深化关系,全程无需反复登录切换账号。
安装依赖
pip install playwright && playwright install chromium
配置要求
scripts/lib/browser.py 中的路径以匹配本地环境基础命令
# 检查会话有效性
python3 {baseDir}/scripts/linkedin.py check-session
# 读取动态流
python3 {baseDir}/scripts/linkedin.py feed --count 5
# 发布纯文字动态
python3 {baseDir}/scripts/linkedin.py post --text "Hello world"
# 发布图文动态
python3 {baseDir}/scripts/linkedin.py post --text "Hello world" --image /path/to/image.png
# 评论(支持@提及)
python3 {baseDir}/scripts/linkedin.py comment --url "https://linkedin.com/feed/update/..." --text "Great insight @Betina Weiler!"
# 编辑评论
python3 {baseDir}/scripts/linkedin.py edit-comment --url "https://..." --match "old text" --text "new text"
# 删除评论
python3 {baseDir}/scripts/linkedin.py delete-comment --url "https://..." --match "text to identify"
# 转发附观点
python3 {baseDir}/scripts/linkedin.py repost --url "https://..." --thoughts "My take..."
# 互动分析
python3 {baseDir}/scripts/linkedin.py analytics --count 10
# 个人数据统计
python3 {baseDir}/scripts/linkedin.py profile-stats
# 监控新增点赞
python3 {baseDir}/scripts/linkedin.py scan-likes --count 15
# 抓取用户活动
python3 {baseDir}/scripts/linkedin.py activity --profile-url "https://linkedin.com/in/someone/" --count 5
启用调试日志:LINKEDIN_DEBUG=1
内容日历部署
# 启动Webhook服务 python3 scripts/cc-webhook.py # 环境变量配置 # CC_DATA_FILE=/path/to/cc-data.json # CC_ACTIONS_FILE=/path/to/actions.json # CC_WEBHOOK_PORT=8401
见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | LinkedIn持久化会话;操作指令及参数(post/comment/repost/feed/analytics等);目标URL;文本/图片内容;环境变量配置 |
| 输出 | JSON格式执行结果,包含帖子数据、互动统计、操作状态、mention匹配结果、新增点赞列表等 |
| 适用人群 | 个人LinkedIn内容运营者、社交媒体管理者、数据驱动型创作者、需审批工作流的团队、具备Python基础的技术用户 |
| 不包含 | 企业多账号管理、LinkedIn官方付费API、违规批量操作、图形界面、商业托管服务 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/red777777/inkedin-automation-that-really-works/SKILL.md
来源类型:GitHub社区贡献