1.0.4 • Published 6 years ago

@chilesh/getonbrd-scraper v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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