0.1.0 • Published 11 months ago

scrape-vesselfinder v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

scrape-vesselfinder

Scrape vessel/ship positions from VesselFinder.

npm version ISC-licensed minimum Node.js version support me via GitHub Sponsors chat with me on Twitter

Installation

npm install scrape-vesselfinder

Usage

scrapeVessel(imoOrMmsi)

import {scrapeVessel} from 'scrape-vesselfinder'

const costaFavolosaIMO = '9479852'

await scrapeVessel(costaFavolosaIMO) // pass in IMO or MMSI
{
	beam: 44, // m
	callsign: 'ICPK',
	courseOverGround: 295.1, // degrees
	currentDraught: 8.3, // m
	flag: 'Italy',
	imo: '9479852',
	latitude: 53.83251,
	length: 290, // m
	longitude: 8.07988,
	mmsi: '247311100',
	navigationStatus: 'under way',
	positionReceived: '0 min ago',
	predictedETA: null,
	speedOverGround: 15.9, // knots
}

scrapeVesselWeather(mmsi)

import {scrapeVesselWeather} from 'scrape-vesselfinder'

const costaFavolosaMMSI = '247311100'

await scrapeVesselWeather(costaFavolosaMMSI) // pass in MMSI
{
	windSpeed: 3.6, // m/s
	windDirection: 30, // degrees
	windTemperature: 13, // ℃
}

Contributing

If you have a question or need support using scrape-vesselfinder, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use the issues page.