feat(linkedin): export profile activity posts#1724
Closed
gauravsaxena1997 wants to merge 1 commit into
Closed
Conversation
304b31d to
85cd28a
Compare
jackwener
added a commit
that referenced
this pull request
May 23, 2026
Owner
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
LinkedIn profile activity posts are useful for career and content workflows, but OpenCLI does not currently provide a read-only way to export the visible post body and counters from an authenticated profile activity page.
This PR adds a raw posts export command. It intentionally avoids custom scoring or classification and returns only data visible in the LinkedIn browser session.
What this PR does
Adds a
Strategy.COOKIELinkedIn browser adapter:Implementation details:
posts-core.jsfor DOM extraction helpers without registering an extra commandmedia_urlsdoes not incorrectly return avatar or reaction CDN assets--limitfrom 1 to 100Live verification
Verified against a logged-in LinkedIn profile session:
Returned the latest visible post with author, full body, reaction count, comment count, repost count, visible impressions, media label, and raw card text. On that card LinkedIn exposed a media label but not a real post-media URL, so
media_urlscorrectly returned an empty string instead of a profile-photo URL.Checklist
npm run buildnpx vitest run --project adapter clis/linkedin/posts.test.jsnpm run typechecknode scripts/check-typed-error-lint.mjsnode scripts/check-silent-column-drop.mjs