Skip to content

Commit

Permalink
Added pattern : f.last (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtasio committed Feb 12, 2021
1 parent adbcaf0 commit 4b52b0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Use an account with a lot of connections, otherwise you'll get crappy results. A

Here's what you get:
- first.last.txt: Usernames like Joe.Schmoe
- f.last.txt: Usernames like J.Schmoe
- flast.txt: Usernames like JSchmoe
- firstl.txt: Usernames like JoeS
- first.txt Usernames like Joe
Expand Down
4 changes: 4 additions & 0 deletions linkedin2username.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ def write_files(company, domain, name_list):
# Define all the files names we will be creating.
files = {}
files['rawnames'] = open(out_dir + '/' + company + '-rawnames.txt', 'w')
files['f.last'] = open(out_dir + '/' + company + '-f.last.txt', 'w')
files['flast'] = open(out_dir + '/' + company + '-flast.txt', 'w')
files['firstl'] = open(out_dir + '/' + company + '-firstl.txt', 'w')
files['firstlast'] = open(out_dir + '/' + company + '-first.last.txt', 'w')
Expand All @@ -659,6 +660,8 @@ def write_files(company, domain, name_list):
first, second, third = parse[0], parse[-2], parse[-1]
files['flast'].write(first[0] + second + domain + '\n')
files['flast'].write(first[0] + third + domain + '\n')
files['f.last'].write(first[0] + '.' + second + domain + '\n')
files['f.last'].write(first[0] + '.' + third + domain + '\n')
files['lastf'].write(second + first[0] + domain + '\n')
files['lastf'].write(third + first[0] + domain + '\n')
files['firstlast'].write(first + '.' + second + domain + '\n')
Expand All @@ -669,6 +672,7 @@ def write_files(company, domain, name_list):
else: # for users with only one last name
first, last = parse[0], parse[-1]
files['flast'].write(first[0] + last + domain + '\n')
files['f.last'].write(first[0] + '.' + last + domain + '\n')
files['lastf'].write(last + first[0] + domain + '\n')
files['firstlast'].write(first + '.' + last + domain + '\n')
files['firstl'].write(first + last[0] + domain + '\n')
Expand Down

0 comments on commit 4b52b0c

Please sign in to comment.