Giter Club home page Giter Club logo

linkedin-scraper's Introduction

Linkedin-Scraper

Scraping LinkedIn profiles is not fun(at all). Without signing-in with a LinkedIn account, you can hardly access more than 15 profiles.

  1. You need to sign-in with your account.
  2. LinkedIn profile pages are dynamic and don't load completely unless you scroll the entire page.

This program let's you scrape profiles based on a keyword in the user's title. (You can edit the link to look for profiles of users working at a specific company or studying at some school) It generates a csv file of these profiles with columns:

  1. Months of Experience
  2. Skills (Seperated by ':')
  3. Recommendations received
  4. No. of Projects
  5. No. of Publications
  6. No. of Followers

Requirements

  • Python3
  • Chrome web driver
  • Selenium
  • BeautifulSoup

Setup

https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip

  1. Download and unzip this
  2. chmod +x chromedriver
  3. sudo mv -f chromedriver /usr/local/share/chromedriver
  4. sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
  5. sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
  6. pip3 install selenium (Try sudo -H pip3 install selenium if this fails)
  7. pip3 install beautifulsoup4
  8. pip3 install tqdm

Usage

  1. Edit urls.py by modifying the query_keyword variable that scrapes profiles with query_keyword as the title(eg. student or professor or founder), set no_of_pages to the number of search result pages you'd like to scrape(Each page has upto 10 profiles), and enter your linkedin credentials.
  2. python3 urls.py
  3. Edit extract.py by modifying query_keyword again.
  4. python3 extract.py

P.S. With great power comes great responsibility. Scrape too much too fast, and your account might get blocked. Scrape safe.

linkedin-scraper's People

Contributors

ed-word avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.