- first.last.txt: Usernames like Joe.Schmoe
- flast.txt: Usernames like JSchmoe
- firstl.txt: Usernames like JoeS
- rawnames.txt: Full name like Joe Schmoe
You’ll need to provide the tool with LinkedIn’s company name. You can find that by looking at the URL for the company’s page. It should look something like
https://linkedin.com/company/uber-com. It may or may not be as simple as the exact name of the company.
Here’s an example to pull all employees of Uber:
$ python linkedin2username.py firstname.lastname@example.org uber-com
Here’s an example to pull a shorter list and append the domain name @uber.com to them:
$ python linkedin2username.py email@example.com uber-com -d 5 -n 'uber.com'
usage: linkedin2username.py [-h] [-p PASSWORD] [-n DOMAIN] [-d DEPTH]
username A valid LinkedIn username.
company Company name.
-h, --help show this help message and exit
-p PASSWORD, --password PASSWORD
Specify your password on in clear-text on the command
line. If not specified, will prompt and not display on
-n DOMAIN, --domain DOMAIN
Append a domain name to username output. [example: '-n
uber.com' would ouput firstname.lastname@example.org]
-d DEPTH, --depth DEPTH
Search depth. If unset, will try to grab them all.
-s SLEEP, --sleep SLEEP
Seconds to sleep between pages. defaults to 3.
Sometimes LinkedIn does weird stuff or returns weird results. Sometimes it doesn’t like you logging in from new locations. If something looks off, run the tool once or twice more. If it still isn’t working, please open an issue.