0.0.4 • Published 4 years ago
@koidu/job-scraper v0.0.4
Job Scraper
Scrape major job websites and return the data in a common format
- NOTE: this package is under active development and subject to change until the API is stable in v1.0.0
Getting Started
Installation
npm install @koidu/job-scraper --save
or
yarn add @koidu/job-scraper
Usage
Job Scraper returns jobs in a JobPosting
format.
JobPosting
key | type | description | example |
---|---|---|---|
sourceId | string | the id from the source job board | indeed:jobPosting:11be61a5bcbb4d00 |
company | string | the company of the job posting | Google |
title | string | the title or position | Software Engineer I |
url | string | the url for the job posting on the job board site | https://www.indeed.com/viewjob?jk=11be61a5bcbb4d00 |
applyUrl | string | the url provided by the job board to apply for the job | https://www.indeed.com/viewjob?jk=11be61a5bcbb4d00&from=vj |
location | string | location of the job | Atlanta, GA |
postDateText | string | when the job was posted as a string from the job site | 5 days ago |
JobScraper
Example
const { JobScraper } = require('@koidu/job-scraper');
async function getJobs() {
const jobs = await JobScraper.searchJobs('indeed', {
searchTerm: 'nodejs developer',
location: 'atlanta, ga',
radius: '10',
limit: 50, // indeed has a limit of 50
});
return jobs;
}