Skip to content

wpentester/Linkedin_profiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This script uses selenium to scrape linkedin employee details from a specified company. If the script isn't working, you can always browse to the desired company's employee page and paste in the link on line 69 like this: "employees_page = url"

The trick is to run the script with the "--function get" flag first. When the browser has opened and run through it's tests, and the files have been successfully saved on disk, then re-run the script using the "--function create" flag.

# Linkedin_profiles  
scrapes Linkedin for company employee profiles  
  
usage: linkedin_profiles.py [-h] --company COMPANY --email_suffix EMAIL_SUFFIX  
                            --email_prefix  
                            {firstlast,firstmlast,flast,fmlast,full,first.last}  
                            --function {get,create} --ignore  
  
Scrape Linkedin profiles for a specified company  
  
optional arguments:  
  -h, --help            show this help message and exit  
  --company COMPANY     The name of the company on Linkedin  
  --email_suffix EMAIL_SUFFIX  
                        The company email suffix ex: user@<email_suffix>  
  --email_prefix {firstlast,firstmlast,flast,fmlast,full,first.last}  
                        The email prefix format ex: <email_prefix>@company.com  
                         full   - ex: [email protected]  
                         firstmlast - ex: [email protected]  
                         flast  - ex: [email protected]  
                         fmlast - ex: [email protected]  
                         firstlast - ex: [email protected]  
                         first.last - ex: [email protected]  
  --function {get,create}  
                         Function to perform:    
                         get - Logs into Linkedin and saves the employee html pages  
                         create - Parses the html pages to create employee lists  
  --ignore              Ignore profiles without a name 

About

scrapes Linkedin for company employee profiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages