Skip to main content

Wrapper to fetch data from marinetraffic

Project description

AISExplorer

AISExplorer can be used to locate vessels or to scrape all vessel in an specific AREA. Also free proxies can be used for scraping. Proxies will be scraped from https://www.sslproxies.org/, tested and used. Also Fallback are implemented

Installation

pip install aisexplorer

Usage

Find vessel by MMIS

from aisexplorer.AIS import AIS

AIS().get_location(211281610)

Find vessels in Area

maximum 500 vessels

from aisexplorer.AIS import AIS

AIS(return_df= True).get_area_data("EMED")


Output is limited to 500 rows. Areas can be found here

Get Table via URL

from aisexplorer.AIS import AIS

AIS(return_df = True).get_data_by_url("https://www.marinetraffic.com/en/data/?asset_type=vessels&columns=time_of_latest_position:desc,flag,shipname,photo,recognized_next_port,reported_eta,reported_destination,current_port,imo,ship_type,show_on_live_map,area,lat_of_latest_position,lon_of_latest_position,speed,length,width&area_in|in|West%20Mediterranean,East%20Mediterranean|area_in=WMED,EMED&time_of_latest_position_between|gte|time_of_latest_position_between=60,NaN")


Use Proxies

from aisexplorer.AIS import AIS

AIS(return_df = True, Proxy = True).get_data_by_url("https://www.marinetraffic.com/en/data/?asset_type=vessels&columns=time_of_latest_position:desc,flag,shipname,photo,recognized_next_port,reported_eta,reported_destination,current_port,imo,ship_type,show_on_live_map,area,lat_of_latest_position,lon_of_latest_position,speed,length,width&area_in|in|West%20Mediterranean,East%20Mediterranean|area_in=WMED,EMED&time_of_latest_position_between|gte|time_of_latest_position_between=60,NaN")


Next Steps

  • Add more potential proxy lists
  • Find a way to change the number of retrys
  • Reset new filters

Changelog

2021-12-10

  • Added Fallback if proxy has died
  • Added get data by url
  • Added Check if requests was filtered by cloudflare

2021-12-5

  • Added Filters early stage
  • Added Retry Options
  • Added some new exceptions

2021-11-27

  • Added Proxy Option

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AISExplorer-0.0.10.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

AISExplorer-0.0.10-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file AISExplorer-0.0.10.tar.gz.

File metadata

  • Download URL: AISExplorer-0.0.10.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.8 Windows/10

File hashes

Hashes for AISExplorer-0.0.10.tar.gz
Algorithm Hash digest
SHA256 df48803fcbc8d615289d159aada5228745ba56b49e254153ca6217d8e364fe36
MD5 8886c499f4483d037008c391dfed8ad7
BLAKE2b-256 66708ce76a2ea1c9bccf6f80ee8d8d8ecda32a42d417656b070e3da5c4ae75d5

See more details on using hashes here.

File details

Details for the file AISExplorer-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: AISExplorer-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.8 Windows/10

File hashes

Hashes for AISExplorer-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 6b805cc1bb5502c405fd8cb497027cfae5fedaf605c1c6e9a26ac78b8434823c
MD5 d3bad51d8f031fa148d0326526f1de36
BLAKE2b-256 0c18bd401d1b0474a3688e0ccbabc7b1d53fe1df64bae81664fd135e944d1a35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page