Skip to content

Track LinkedIn followers - #9

Merged
Zethson merged 1 commit into
mainfrom
linkedin-followers
Aug 14, 2026
Merged

Track LinkedIn followers#9
Zethson merged 1 commit into
mainfrom
linkedin-followers

Conversation

@Zethson

@Zethson Zethson commented Aug 14, 2026

Copy link
Copy Markdown
Member

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 --noEmit clean; ran the collector against the live page and the combiner over its output, giving "linkedin_followers": 3421 in stats.json.

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.
@Zethson
Zethson merged commit d2d1eaa into main Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linkedin followers

1 participant