Track LinkedIn followers - #9
Merged
Merged
Conversation
LinkedIn has no public API for follower counts, and the Marketing Developer Platform needs an approved app plus OAuth tokens that expire, which is a lot of machinery for one number. The logged-out company page does carry the count, so read it from there. It is scraped, so it is fragile in two ways: the markup can change, and LinkedIn serves an auth wall to some datacentre ranges, which GitHub Actions runners are. Both are handled by writing nothing rather than failing — the collector catches its own errors and the combiner already skips fields whose file is absent, so a blocked run loses this number and nothing else. The regex deliberately ignores abbreviated counts like "10K followers": no number beats a wrong one. Closes #6.
Zethson
added a commit
to scverse/scverse.github.io
that referenced
this pull request
Aug 14, 2026
scverse/stats#9 adds the field. It is scraped from the logged-out company page, so a run that gets blocked will not have it, and the tile is behind a `with` rather than assuming it is there.
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.
Closes #6.
LinkedIn has no public API for follower counts. The Marketing Developer Platform can give them, but it needs an approved app, page-admin verification and OAuth tokens that expire. The logged-out company page does carry the count, so this reads it from there. No new secrets.
npx tsc --noEmitclean; ran the collector against the live page and the combiner over its output, giving"linkedin_followers": 3421instats.json.