Giter Club home page Giter Club logo

jobscraper's Introduction

Puppeteer Job Scraper

This is a Node.js script that scrapes job postings from Indeed.com based on a specified search term. It utilizes the Puppeteer library to automate the process of navigating the Indeed website and extracting job data.

Prerequisites

  • Node.js (version 12 or above)
  • NPM (Node Package Manager)

Installation

  1. Clone the repository or download the script file.

  2. Open a terminal and navigate to the project directory.

  3. Run the following command to install the required dependencies:

    npm install
    

Usage

To run the script, navigate to the main directory and use the following command:

node . [flags] [searchTerms]
  • flags (optional): Flags allow users to tailor they scraper to only scrape certain sites or to override default actions.
  • searchTerm (optional): The term to search for job postings on Indeed.com. If not provided, the default value is "front end web developer".

Commands

  • --dev-mode: Enables development mode. When this flag is present, all other flags are ignored, and the scraping process will be performed in a development mode scraping all sources.
  • --indeed: Enables scraping of job listings from Indeed.
  • --monster: (Not implemented) Enables scraping of job listings from Monster.
  • --linkedin: (Not implemented) Enables scraping of job listings from LinkedIn.

The script will launch a headless browser using Puppeteer, navigate to Indeed.com, and perform a search using the specified search term. It will scrape the job card container elements on each page of the search results and display the extracted job data in the console.

Configuration

You can modify the script's behavior by changing the following variables:

  • screenshotsFolderPath: The folder path where screenshots will be saved. By default, it is set to "./screenshots".

License

This project is licensed under the MIT License.

jobscraper's People

Contributors

tylerswindell avatar

Stargazers

 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.