@chilesh/getonbrd-scraper

Getonbrd jobs scraping library

Usage no npm install needed!

<script type="module">
  import chileshGetonbrdScraper from 'https://cdn.skypack.dev/@chilesh/getonbrd-scraper';
</script>

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