No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linkedin_job_search_scraper-0.1.6.tar.gz.
File metadata
- Download URL: linkedin_job_search_scraper-0.1.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ec3bc11092e1667c642ba7b7e57d75cd269137f30674d5794182f6b5ff9fe78
|
|
| MD5 |
2490ba18b09ed7c10f8351abadb3fd13
|
|
| BLAKE2b-256 |
987a83978deaa6bc067e461fa1bf153f23c61196f11bc361d7ff7f09c5d775c2
|
File details
Details for the file linkedin_job_search_scraper-0.1.6-py3-none-any.whl.
File metadata
- Download URL: linkedin_job_search_scraper-0.1.6-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
330f5f37e880d852af7baf5a86dd67c82c940e0283ab41d8f3669bf79c07533b
|
|
| MD5 |
f9d4461a1ab03dba2075ac9e3f89bf32
|
|
| BLAKE2b-256 |
f18e77c4302fa8d606a9e83477df09ced1e149902b74fbc2d3f569b85f79d804
|