scrape-vesselfinder
Scrape vessel/ship positions from VesselFinder.
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.