Skip to content

A tool to programmatically scrape the clearance certificate status from the WSIB Online Services website.

License

Notifications You must be signed in to change notification settings

cityssm/wsib-clearance-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSIB Clearance Check

npm (scoped) DeepSource Code Climate maintainability codecov Coverage Testing

A tool to scrape the clearance certificate status from the WSIB Online Services Clearance Certificate Website.

Installation

npm install @cityssm/wsib-clearance-check

Usage

import * as wsib from '@cityssm/wsib-clearance-check'

const cert = await wsib.getClearanceByAccountNumber(123)

Output

{
  success: true,
  accountNumber: '123',
  contractorLegalTradeName: 'LANDSCAPING BY EVAN',
  contractorAddress: '456 JULIA LANE, SAULT STE. MARIE, ON, P6A5X6, CA',
  contractorNAICSCodes: [
    {
      code: '561730',
      codeDescription: 'Landscaping services',
      classKey: 'M',
      className: 'ADMINISTRATION, SERVICES TO BUILDINGS, DWELLINGS, AND OPEN SPACES'
    }
  ],
  clearanceCertificateNumber: 'A000012345',
  validityPeriodStart: 2021-02-20T00:00:00.000Z,
  validityPeriodEnd: 2021-05-19T00:00:00.000Z,
  principalLegalTradeName: 'Valid for all principals',
  principalAddress: 'Not applicable',
  certificateURL: 'https://clearances.wsib.ca/Clearances/eclearance/GCSearchCertDet12345678'
}