From 740022d22ccb0a0251959766b8fa8a57f9ff9144 Mon Sep 17 00:00:00 2001 From: initstring <26131150+initstring@users.noreply.github.com> Date: Thu, 21 May 2026 07:22:33 +1000 Subject: [PATCH] Filter out 'LinkedIn Member' placeholder names from results Closes #81 Co-Authored-By: Claude Sonnet 4.6 --- linkedin2username.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linkedin2username.py b/linkedin2username.py index c3a0b24..4eaf507 100755 --- a/linkedin2username.py +++ b/linkedin2username.py @@ -561,6 +561,10 @@ def find_employees(result): # There is no first/last name fields anymore so we're taking the full name full_name = entity['title']['text'].strip() + # Skip placeholder profiles with no real name + if full_name.lower() == 'linkedin member': + continue + # The name may include extras like "Dr" at the start, so we do some basic stripping if full_name[:3] == 'Dr ': full_name = full_name[4:]