0.1.0 • Published 11 months ago

scrape-myshiptracking v0.1.0

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

scrape-myshiptracking

Scrape vessel/ship positions from myshiptracking.com.

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

Installation

npm install scrape-myshiptracking

Usage

import {fetchData} from 'scrape-myshiptracking'

const partOfHamburg = {
	south: 53.516828,
	north: 53.560591,
	west: 9.878242,
	east: 10.019656,
}

await fetchVessels(partOfHamburg)
{
	vessels: [
		{
			type: 'passenger',
			name: 'BIRGIT EHLERS',
			latitude: 53.54234,
			longitude: 9.9528,
			speedOverGround: 6.6,
			course: 57.1,
			t: 1685198425,
			headingFor: 'HAMBURG',
		},
		// …
	],
}

Contributing

If you have a question or need support using scrape-myshiptracking, 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.