SuperAPI AI 工具集

linkedin-notifications

办公与效率

查看项目

更新于 10-16 06:55

技能介绍

LinkedIn Notifications Checker 是一个用于检查 LinkedIn 通知、并对新通知进行去重后上报的技能脚本。它的描述为:检查 LinkedIn 通知,并通过 iMessage 报告新通知;由于与数据库进行去重,因此只报告新通知。

用途 该工具会抓取 LinkedIn 通知页面,与数据库比对去重,然后输出新通知以供上报。

前提条件

  • Chrome 浏览器并启用 CDP
  • 已登录 LinkedIn
  • 需要 ws 与 pg 两个 npm 包
  • 需要 DATABASE_URL 环境变量

快速使用 node skills/linkedin-notifications/scripts/linkedin-notifications.js

工作流程

  1. 打开 linkedin.com/notifications/ 页面
  2. 滚动以加载通知
  3. 抓取所有可见通知(文本、链接、时间)
  4. 对每条通知做哈希,并与 linkedin_notifications 数据表比对
  5. 存储新通知,跳过已见过的通知
  6. 输出新通知的 JSON 摘要
  7. 离开通知页面

可识别的通知类型

  • connection_accepted:例如“John Doe accepted your invitation”
  • connection_request:例如“Jane wants to connect”
  • reaction:例如“5 people liked your post”
  • comment:例如“John commented on your post”
  • share:例如“Jane shared your post”
  • mention:例如“You were mentioned in a post”
  • profile_view:例如“3 people viewed your profile”
  • endorsement:例如“John endorsed you for Python”
  • milestone:例如“Jane started a new position”
  • job:例如“New jobs matching your alerts”
  • other:其他任何类型

数据库 使用 linkedin_notifications 表,字段包括:

  • notification_hash:内容的 MD5,用作去重键
  • notification_type:分类后的类型
  • actor_name:提取出的人物姓名
  • content:完整的通知文本
  • link:可用的 URL
  • reported:是否已包含在报告中

命令行选项

  • --limit:默认 30,表示最多处理的通条数
  • --cdp-port:默认 18800,表示 Chrome CDP 端口

适用场景 该工具适合需要定期查看 LinkedIn 通知、并只关注新增通知的使用者,例如希望通过 iMessage 接收新通知提醒的场景。它通过数据库去重避免重复报告。

限制 资料未提供关于价格、授权许可、运行环境版本要求、UI 界面、除 LinkedIn 外平台支持等方面的更多信息,以上内容暂未提供。