0.2.2 • Published 6 years ago

@ourstreets/plate-lookup-etimspayments v0.2.2

Weekly downloads
3
License
MIT
Repository
gitlab
Last release
6 years ago

@ourstreets/plate-lookup-etimspayments

API

Table of Contents

EtimspaymentsLookup

Lookup service class for municipalities using etimspayments.

Uses Puppeteer and Tesseract.js to load etimspayments powered ticket payments systems to get unpaid citations.

Parameters

  • url string The URL of the etimspayments instance
  • browser object? Puppeeteer browser instance
  • tesseractWorker object? Tesseract worker instance

initialize

Initialize the browser and tesseractWorker if needed

teardown

Close the puppeteer browser and terminate the tesseractWorker

lookup

Lookup a plate

Parameters
  • state string The state of the license plate (2 character state code)
  • number string The plate numbers and letters
  • options object the only option currently is the retryCaptcha key. specify an integer to retry on captcha errors
    • options.retry (optional, default 0)

Returns Array<Object> An array of citation objects

screenshotDOMElement

Takes a screenshot of a DOM element on the page, with optional padding.

Parameters

Returns Promise<Buffer>

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago