Git Product home page Git Product logo

linkedinmama's Introduction

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

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/bigb0sss/LinkedinMama.git
pip install -r requirements.txt

Usage & Example

$  python LinkedinMama.py -h
usage: LinkedinMama.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
python LinkedinMama.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

python LinkedinMama.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.

linkedinmama's People

Contributors

bigb0sss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.