feat(linkedin): add company command#2088
Merged
Merged
Conversation
Adds `opencli linkedin company <name>` — reads a LinkedIn company's About page: industry, size, headquarters, founded, website, specialties, follower count, and about text. - Accepts a bare universal name (`nvidia`), a `/company/<name>` path, or a full company URL; navigates to the About page and scrapes the dt/dd fact list + follower count (same DOM-extraction style as profile-read). - Typed errors: AuthRequiredError via assertLinkedInAuthenticated, CommandExecutionError on malformed payload / missing company name. Live-verified end-to-end (NVIDIA: 42M followers, Computer Hardware Manufacturing, founded 1993; Databricks via full URL). 4 tests; audits new=0.
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
Adds
opencli linkedin company <name>— reads a LinkedIn company's About page.How
nvidia), a/company/<name>path, or a full URL; navigates to/company/<name>/about/and scrapes thedt/ddfact list + follower count — same DOM-extraction style as the existingprofile-read.AuthRequiredErrorviaassertLinkedInAuthenticated;CommandExecutionErroron malformed payload or missing company name (layout drift / not found).Verification
Live-verified end-to-end: NVIDIA (42M followers, founded 1993, HQ, website, specialties, about) and Databricks (via full URL, gracefully handles missing
founded). 4 tests;typed-error-lint/silent-column-dropnew=0.Part of the LinkedIn enrichment task (companion to #2083
connections). Next candidates:received-invitationsandnotifications(LinkedIn moved these to GraphQL DASH / dynamic DOM — need dedicated care).