LinkedIn Notifications Checker
Scrapes LinkedIn notifications page, deduplicates against DB, and outputs new notifications for reporting.
Prerequisites
- Chrome with CDP running
- Logged into LinkedIn
wsandpgnpm packagesDATABASE_URLenv var
Quick Usage
node skills/linkedin-notifications/scripts/linkedin-notifications.js
Workflow
- Navigate to linkedin.com/notifications/
- Scroll to load notifications
- Scrape all visible notifications (text, link, time)
- Hash each notification, check against
linkedin_notificationsDB table - Store new ones, skip already-seen
- Output JSON summary of new notifications
- Navigate away from notifications page
Notification Types Detected
| Type | Example |
|---|---|
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 |
Anything else |
Database
Uses linkedin_notifications table:
notification_hash: MD5 of content (dedup key)notification_type: classified typeactor_name: extracted person namecontent: full notification textlink: URL if availablereported: whether it was included in a report
CLI Options
| Flag | Default | Description |
|---|---|---|
--limit |
30 | Max notifications to process |
--cdp-port |
18800 | Chrome CDP port |