Giter VIP home page Giter VIP logo

linkedin-jobs-scraper's Introduction

LinkedIn Jobs Scaper

First, I do not condone scraping LinkedIn data in any way. Anyone who wishes to do so should first read LinkedIn's statement on their prohibition of scraping software.

But if one were to scrape LinkedIn job postings using selenium webdriver with access to premium user insights, say, then this repository could serve as a collection of tools that one may find useful. I found the selenium webdriver to be key in this process, as LI dynamically renders their pages with JavaScript, so using a tool like BeautifulSoup will grab the initial JS code but not the data that is displayed on the page. Also, note that LinkedIn actively suspends accounts due to 'excessive activity' on a given account.

This module requires python bindings for the selenium webdriver

$ pip install selenium

Here is a quick demo of how one can use the LinkedIn client and scrape tools.

From the command line:

$ python main.py --username uname --password pword --keyword software --location "san francisco bay area" --sort_by date

Or alter settings and run main

from selenium import webdriver
from client import LIClient
from settings import search_keys
import time


# initialize Selenium Web Driver
driver = webdriver.Chrome()
driver.get("https://www.linkedin.com/uas/login")
# initialize LinkedIn web client
liclient = LIClient(driver, **search_keys)
liclient.login()
# wait for page load
time.sleep(3)

liclient.keyword  = "software"
liclient.location = "san francisco bay area"
liclient.navigate_to_jobs_page()
liclient.enter_search_keys()
liclient.customize_search_results()
liclient.navigate_search_results()
liclient.driver_quit()

linkedin-jobs-scraper's People

Contributors

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