add: LinkedIn username validation (social category)#264
Merged
kaifcodec merged 1 commit intokaifcodec:mainfrom Mar 3, 2026
Merged
add: LinkedIn username validation (social category)#264kaifcodec merged 1 commit intokaifcodec:mainfrom
kaifcodec merged 1 commit intokaifcodec:mainfrom
Conversation
Uses Twitterbot User-Agent to bypass LinkedIn's anti-bot detection (HTTP 999). LinkedIn whitelists social media crawler bots for link previews, serving proper responses: 200/301 for existing profiles, 404 for non-existing ones.
kaifcodec
approved these changes
Mar 3, 2026
Owner
kaifcodec
left a comment
There was a problem hiding this comment.
This is a smart and well-executed implementation.
Using the Twitterbot/1.0 User-Agent to bypass the HTTP 999 block is a clever approach, and the handling of status codes and edge cases looks clean.
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.
Summary
Twitterbot/1.0User-Agent — LinkedIn whitelists social media crawler bots for link previewsHow it works
LinkedIn aggressively blocks automated requests with HTTP 999. However, it whitelists crawler bots from social media platforms (Twitter, Facebook, Bing) to generate link previews when users share LinkedIn URLs. The
Twitterbot/1.0User-Agent receives proper HTTP responses instead of 999.Tested with
[✔] Found[✘] Not Found[✔] Found[!] ErrorRate limiting
In normal scan mode (1 request per module), no rate limiting observed. Bulk scanning (
-ufwith many usernames) may trigger 999 after ~3 rapid requests from the same IP.Supersedes #107.
Test plan
user-scanner -u williamhgates -m linkedin→[✔] Founduser-scanner -u totalfakeuser2026 -m linkedin→[✘] Not Founduser-scanner -u williamhgates(full scan) → LinkedIn appears in social results