Skip to main content

No project description provided

Project description

image image LinkedIn


Linkedin Scraper

LinkedIn job Scraper library with filter support
Explore the docs »

Report Bug · Request Feature

Installation

Install Package from Pypi using pip: pip install linkedin-job-search-scraper

Usage

The code below takes two different configs with parameters, scrapes the relevent jobs data and stores it in data folder. Check example.py for more info.

from linkedin_job_search_scraper import runner
from linkedin_job_search_scraper.conf.config import Config
from linkedin_job_search_scraper.helper.filters import *
from linkedin_job_search_scraper.helper.filters import filter_params


def main():
    EMAIL: str = "example@gmail.com"
    PASSWORD: str = "password"

    configs = [
        Config(
            EMAIL=EMAIL,
            PASSWORD=PASSWORD,
            LIMIT=8,  # find first 8 jobs
            PARAMS=filter_params(
                query="machine learning engineer",
                location="Worldwide",
                date_posted=JobDatePosted.MONTH,  # job posted this month
                sort_by=JobSortBy.RECENT,
            ),
        ),
        Config(
            EMAIL=EMAIL,
            PASSWORD=PASSWORD,
            LIMIT=5,  # find first 5 jobs
            PARAMS=filter_params(
                query='"python" AND ("django OR "flask")',
                location="North America",
                date_posted=JobDatePosted.DAY,  # job posted today
                sort_by=JobSortBy.RELEVANCE,
                job_distance=JobDistance.REMOTE,
            ),
        ),
    ]

    # run 2 workers in parallel at the same time
    runner.run(configs=configs, workers=2)


if __name__ == "__main__":
    main()

Parameters

Config

The following values of Config class can be changed:

Parameter Name Description Default Value
LIMIT Number of jobs to find for a given query. 0 (default) means unlimited 0
DATA_PATH Path to data folder for jobs. Has raw and processed as subfolders. ./data
BROWSER Browser driver used for scraping. Needs ChromeDriver, GeckoDriver or alternative to be installed "chromium"
USE_USER_AGENT Enables random/custom user-agent usage during requests. False
USER_AGENTS Collection of available user-agent strings. -
HEADLESS Runs browser in headless mode without GUI. True
ROUTE_BLOCK_LIST List of routes/resources to block for faster browsing. -

Filter Params

The following are the parameters accepted by filter_params method. If a parameter is not provided, it defaults to all. Only query is a required parameter.

Name Description Values
query The query to run and find jobs for. Works similar to LinkedIn Job search bar. -
location Which location the job should be for. worldwide, North America, France etc.
sort_by How the job results should be sorted. relevance | recent
job_distance Work location type (supports multiple selection). onsite | remote | hybrid
experience Required experience level (supports multiple selection). intern | entry | associate | senior | director | executive
job_type Employment type (supports multiple selection). fullTime | partTime | contractor | temporary | volunteer | internship | other
date_posted Filter jobs by posting date. day | week | month
easy_apply Show only Easy Apply jobs. enabled
few_applicants Show jobs with fewer applicants. enabled
in_network Show jobs where where you have LinkedIn connections. enabled
fair_chance Show jobs in which LinkedIn algorithm thinks you have a fair chance. enabled

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Umair Shahab - LinkedIn - umair.shahab.ahmed@gmail.com

Project Link: https://github.com/InfiniteLoopify/linkedin-job-search-scraper

(back to top)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linkedin_job_search_scraper-0.1.7.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linkedin_job_search_scraper-0.1.7-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file linkedin_job_search_scraper-0.1.7.tar.gz.

File metadata

  • Download URL: linkedin_job_search_scraper-0.1.7.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for linkedin_job_search_scraper-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4b1098f8971b3f62a595740fe7c5f455b965de7c92d769a81ca7ab60a029facd
MD5 f505f9e1bb7ba6f81342f4d619014fc3
BLAKE2b-256 3d335707bacb4ea2e6b587b3bb59a7a959d4d74c3fc327d395e9f7b38f4e3af5

See more details on using hashes here.

File details

Details for the file linkedin_job_search_scraper-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: linkedin_job_search_scraper-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for linkedin_job_search_scraper-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 573526a5b686e4acb5e456894011855d3a87cc7ad19771b4468c91f81216e985
MD5 bd97e7a3d0ff3fba069e0230f613f97c
BLAKE2b-256 5bf4ca5cbda71b9af516fe244ff3c206611cfe426544f308ddc8af7eafd97541

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page