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
pip install aisexplorer
from aisexplorer.AIS import AIS
AIS().get_location(211281610)
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
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")
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")
- Add more potential proxy lists
- Find a way to change the number of retrys
- Reset new filters
- Added Fallback if proxy has died
- Added get data by url
- Added Check if requests was filtered by cloudflare
- Added Filters early stage
- Added Retry Options
- Added some new exceptions
- Added Proxy Option