https://github.com/cityssm/wsib-clearance-check
A tool to programmatically scrape the clearance certificate status from the WSIB Online Services website.
https://github.com/cityssm/wsib-clearance-check
api clearance-certificate-status hacktoberfest insurance ontario web-scraping workplace wsib
Last synced: 11 months ago
JSON representation
A tool to programmatically scrape the clearance certificate status from the WSIB Online Services website.
- Host: GitHub
- URL: https://github.com/cityssm/wsib-clearance-check
- Owner: cityssm
- License: mit
- Created: 2021-01-29T19:58:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T14:33:59.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T02:40:06.865Z (over 1 year ago)
- Topics: api, clearance-certificate-status, hacktoberfest, insurance, ontario, web-scraping, workplace, wsib
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@cityssm/wsib-clearance-check
- Size: 726 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WSIB Clearance Check
[](https://www.npmjs.com/package/@cityssm/wsib-clearance-check)
[](https://app.deepsource.com/gh/cityssm/wsib-clearance-check/)
[](https://codecov.io/gh/cityssm/wsib-clearance-check)
[](https://github.com/cityssm/wsib-clearance-check/actions/workflows/coverage.yml)
A tool to scrape the clearance certificate status from the
[WSIB Online Services Clearance Certificate Website](https://onlineservices.wsib.on.ca/EClearanceWeb/eclearance/start).
## Installation
```bash
npm install @cityssm/wsib-clearance-check
```
## Usage
```javascript
import * as wsib from '@cityssm/wsib-clearance-check'
const cert = await wsib.getClearanceByAccountNumber(123)
```
## Output
```javascript
{
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'
}
```