@chilesh/getonbrd-scraper
v1.0.4
Published
Getonbrd jobs scraping library
Downloads
5
Readme
getonbrd-scraper
Getonbrd jobs scraping library
Install
yarn add @chilesh/getonbrd-scraper
# or npm i @chilesh/getonbrd-scraper
Usage
import GetOnBrd from '@chilesh/getonbrd-scraper'
const run = async () => {
// GetOnBrd('your_session_cookie')
const getonbrd = await GetOnBrd('SGExS1Nkb2dX...')
// get jobs by salary range
const jobs = await getonbrd.getJobsBySalary(1000, 2000)
// or navigate using an offset
const moreJobs = await getonbrd.getJobsBySalary(1000, 2000, 25)
// get a job description
const job = await getonbrd.getJob(moreJobs.urls[0])
// get a company profile
const company = await getonbrd.getCompanyProfile(job.company.url)
}
run()
Test
SESSION=SGEkbko2d... yarn test
# or use env file
cp .env.example .env
# set your session token
yarn test
License
MIT