Вы можете использовать их API для получения информации о корабле.
Например:
import re
import json
import requests
url = 'https://www.marinetraffic.com/en/ais/details/ships/mmsi:255805792'
ship_info_url = 'https://www.marinetraffic.com/en/vesselDetails/vesselInfo/shipid:{ship_id}'
headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0'}
r = requests.get(url, headers=headers)
ship_id = re.search(r'shipid:(\d+)', r.url)[1]
data = requests.get(ship_info_url.format(ship_id=ship_id), headers=headers).json()
print(json.dumps(data, indent=4))
print('Year Built = ', data['yearBuilt'])
Печать:
{
"name": "LAILA",
"nameAis": "LAILA",
"imo": 9377559,
"eni": null,
"mmsi": 255805792,
"callsign": "CQDP",
"country": "Portugal",
"countryCode": "PT",
"type": "Cargo - Hazard A (Major)",
"typeSpecific": "Container Ship",
"typeColor": "7",
"grossTonnage": 28048,
"deadweight": 38080,
"teu": 2700,
"liquidGas": null,
"length": 215.5,
"breadth": 29.87,
"yearBuilt": 2008,
"status": "Active",
"isNavigationalAid": false,
"correspondingRoamingStationId": null,
"homePort": null
}
Year Built = 2008