Skip to content

Commit

Permalink
Add back in length check
Browse files Browse the repository at this point in the history
  • Loading branch information
initstring committed Sep 18, 2023
1 parent c90de01 commit 2ac74a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linkedin2username.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ac74a2

Please sign in to comment.