diff --git a/linkedin2username.py b/linkedin2username.py index fb38848..fe5f9a5 100755 --- a/linkedin2username.py +++ b/linkedin2username.py @@ -509,13 +509,14 @@ def find_employees(result): full_name = f"{profile.get('firstName', '')} {profile.get('lastName', '')}".strip() occupation = profile.get('occupation', "") - if full_name: + if len(full_name) > 1: found_employees.append({'full_name': full_name, 'occupation': occupation}) return found_employees + def do_loops(session, company_id, outer_loops, args): """ Performs looping where the actual HTTP requests to scrape names occurs