Giter Site home page Giter Site logo

wfscarvalho / linkedin-jobs-scraper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ruy-araujo/linkedin-jobs-scraper

0.0 0.0 0.0 25.97 MB

A Python web scraper using Scrapy to collect job posting information from LinkedIn.

License: MIT License

Python 100.00%

linkedin-jobs-scraper's Introduction

pt-br

Linkedin Jobs Scraper

This repository contains a LinkedIn jobs scraper written in Python that extracts job data and saves it in JSON files.

How to use

  1. Clone the repository to your local machine:
    git clone https://github.com/Ruy-Araujo/Linkedin-Jobs-Scraper
  1. Install the dependencies:
    cd Linkedin-Jobs-Scraper
    pip install -r requirements.txt
  1. Configure the exemple.env file:

    1. Fill in the LINKEDIN_COOKIES and CSRF_TOKEN parameters with those from the platform see how to generate cookies and csrf-token

    2. The KEYWORDS field is a string with the keywords that will be used to filter job listings.

    3. The LOCATION field is a string with the location where the job listings will be searched.

  2. Run the main.py script

    python main.py

The scraper will extract job data from LinkedIn Jobs and save it in a JSON file in the project directory.

How to generate LinkedIn cookies

  1. Access the LinkedIn Jobs website.

  2. Open the browser console (F12) and go to the Network tab.

  3. In the Network tab, press CTRL+F to perform a search and type "csrf-token".

  4. Select any item and you will see the "cookie" and "csrf-token" fields in the request header.

Technical details

The scraper uses the Scrapy framework to parse the HTML of the LinkedIn jobs page and extract information such as job title, company name, location, job description, and date of publication.

The raw data is available here

Contributing

If you want to contribute to this project, feel free to open an issue or send a pull request.

linkedin-jobs-scraper's People

Contributors

ruy-araujo 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.