Code Monkey home page Code Monkey logo

glassdoor-job-scrapper's Introduction

Glassdoor Job Scrapper

This project provides a tool for scraping job listings from Glassdoor using Python and Selenium for web browsing and BeautifulSoup for parsing HTML. It automates the process of fetching job data including titles, companies, locations, and salaries, making it easier to analyze the job market or to find job opportunities automatically.

Features

  • Scrape job listings from Glassdoor based on job title and location.
  • Automatically handle pop-ups and web page navigations.
  • Save job listings data into a CSV file for easy use and analysis.
  • Run in both standard and headless mode for efficient background execution.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.6+
  • pip

Installation

Clone the repository:

git clone https://github.com/yourusername/glassdoor-job-scraper.git
cd glassdoor-job-scraper

Install the required packages:

pip install -r requirements.txt

Usage

To run the scraper, navigate to the project directory and run:

python glassdoor_scraper.py

Configuring the Script

Edit the main() function in glassdoor_scraper.py to specify different job titles and locations:

def main():
    driver = setup_driver()
    try:
        login_to_glassdoor(driver, "Data Scientist", "New York, United States")
        load_more_jobs(driver)
        job_data = scrape_jobs(driver)
        save_to_csv(job_data, "glassdoor_jobs.csv")
    finally:
        driver.quit()

Output

The script will output a CSV file named glassdoor_jobs.csv containing the scraped job listings. Each row represents a different job and includes columns for the job title, company, location, salary, and a link to the job posting.

License

Distributed under the MIT License.

glassdoor-job-scrapper's People

Contributors

sejalkankriya avatar

Watchers

Kostas Georgiou 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.