Skip to content

Linkedin Employee Profile Scrapper (Python3 version)

Notifications You must be signed in to change notification settings

h0useh3ad/LinkedinMama3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LinkedinMama

Linkedin intelligence to scrap employee profiles for further password guessing or phishing attacks.

Respect and Credits

Original Scraper - @DisK0nn3ct (https://github.com/DisK0nn3cT/linkedin-gatherer)
Updated Scraper - @vysecurity (https://github.com/vysecurity/LinkedInt/blob/master/LinkedInt.py)

Modified by @bigb0ss (https://github.com/bigb0sss/LinkedinMama)
Updated to Python3 by @h0useh3ad

Updates

  1. Simplified and cleaned up some script outputs.
  2. Added random delays (0-3) between scraping pages.
  3. Modified only output file to .csv.
  4. Auto companyID search seemed to be unrealiable for some companies that have multiple IDs --> Modified to provide exact companyID from Linkedin. Go to the target company's "See all employees" page and use the "facetCurrentCompany=" values at a time.

Installation

git clone https://github.com/h0useh3ad/LinkedinMama3.git
pip3 install -r requirements.txt

Usage & Example

$  python3 LinkedinMama3.py -h
usage: LinkedinMama3.py [-h] [-k KEYWORDS] [-c COMPANYID] [-e EMAIL]
                       [-n NAMING]

[*] Linkedin User Scraper

optional arguments:
  -h, --help            show this help message and exit
  -k KEYWORDS, --keywords KEYWORDS
                        Keywords to search & create output to file
  -c COMPANYID, --companyid COMPANYID
                        facetCurrentCompany= parameter value
  -e EMAIL, --email EMAIL
                        Company email domain
  -n NAMING, --naming NAMING
                        User naming scheme: [0] Auto (hunter.io) [1] FirstLast
                        [2] FirstMiddleLast [3] FLast [4] FirstL [5]
                        First.Last [6] Last.First
  • Add your Linkedin credentials and Hunter.io API keys into LinkedinMama.cfg file.
  • Run the script
python3 LinkedinMama3.py

  _      _____ _   _ _  ________ _____ _____ _   _ __  __          __  __           
 | |    |_   _| \ | | |/ /  ____|  __ \_   _| \ | |  \/  |   /\   |  \/  |   /\     
 | |      | | |  \| | ' /| |__  | |  | || | |  \| | \  / |  /  \  | \  / |  /  \    
 | |      | | | . ` |  < |  __| | |  | || | | . ` | |\/| | / /\ \ | |\/| | / /\ \   
 | |____ _| |_| |\  | . \| |____| |__| || |_| |\  | |  | |/ ____ \| |  | |/ ____ \  
 |______|_____|_| \_|_|\_\______|_____/_____|_| \_|_|  |_/_/    \_\_|  |_/_/    \_\
                                                                  [bigb0ss]         

[*] Linkedin Intelligence
[*] Original Scraper by @DisK0nn3ct
[*] Updated Scraper by @vysecurity
[*] This Scraper by @bigb0ss

[*] Enter Linkedin Search Keyword (eg. "google"): optiv  <-- Providing the keyword to search
[+] Creating Output File: optiv.csv
[*] Provide "facetCurrentCompany=" ID: 9291  <-- Providing the companyID   
[+] Using CompanyID: 9291
[*] Enter Email Domain (eg. gmail.com): optiv.com  <-- Providing the email domain
[*] Naming Scheme for the Company 
    [0] Auto (hunter.io) 
    [1] FirstLast 
    [2] FirstMiddleLast 
    [3] FLast 
    [4] FirstL 
    [5] First.Last 
    [6] Last.First 
    [!] Select: 0. <-- Selecting the naming scheme used for the email addresses
[*] Hunter.io is doing the job for you
[+] {first}.{last}
[+] Found first.last Naming Scheme
[+] Welcome to Linkedin!
[+] Login Success as <YOUR LINKEDIN USER>
[+] Auth Cookie: AQED...<REDACTED>...SvJxf
[+] 145 Results Found
[*] Fetching 4 Pages
[+] Fetching page 0 with 40 results
[+] Fetching page 1 with 40 results
[+] Fetching page 2 with 40 results
[+] Fetching page 3 with 25 results
[+] Linkedin Scrapping Completed.

OR

python3 LinkedinMama3.py -k optiv -c 9291 -e optiv.com -n 0

  _      _____ _   _ _  ________ _____ _____ _   _ __  __          __  __           
 | |    |_   _| \ | | |/ /  ____|  __ \_   _| \ | |  \/  |   /\   |  \/  |   /\     
 | |      | | |  \| | ' /| |__  | |  | || | |  \| | \  / |  /  \  | \  / |  /  \    
 | |      | | | . ` |  < |  __| | |  | || | | . ` | |\/| | / /\ \ | |\/| | / /\ \   
 | |____ _| |_| |\  | . \| |____| |__| || |_| |\  | |  | |/ ____ \| |  | |/ ____ \  
 |______|_____|_| \_|_|\_\______|_____/_____|_| \_|_|  |_/_/    \_\_|  |_/_/    \_\
                                                                  [bigb0ss]         

[*] Linkedin Intelligence
[*] Original Scraper by @DisK0nn3ct
[*] Updated Scraper by @vysecurity
[*] This Scraper by @bigb0ss

[+] Creating Output File: optiv.csv
[+] Using CompanyID: 9291
[*] Hunter.io is doing the job for you
[+] {first}.{last}
[+] Found first.last Naming Scheme
[+] Welcome to Linkedin!
[+] Login Success as <YOUR LINKEDIN USER>
[+] Auth Cookie: AQED...<REDACTED>...SvJxf
[+] 145 Results Found
[*] Fetching 4 Pages
[+] Fetching page 0 with 40 results
[+] Fetching page 1 with 40 results
[+] Fetching page 2 with 40 results
[+] Fetching page 3 with 25 results
[+] Linkedin Scrapping Completed.

About

Linkedin Employee Profile Scrapper (Python3 version)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages