This project fetches vessel info between the given longitude and latitiude from MarineTraffic. The (MinLat,MaxLat) and (MinLongi, MaxLongi) should be given as terminal argument. An example can be seen below.
- Open Microsoft Store.
- Type Python 3.10 on search bar.
- Select Python 3.10 and install it.
Follow below steps
sudo apt update && sudo apt upgrade -y
sudo apt install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10
pip install virtualenv
python -m venv env
source env/bin/activate
env\Scripts\activate
pip install -r requirements.txt
python main.py --p 1 --lat-min 40.83 --lat-max 40.875 --lon-min 29.233 --lon-max 29.292
python test_receive.py
source env/bin/activate
env\Scripts\activate
python main.py --p 1 --lat-min 40.83 --lat-max 40.875 --lon-min 29.233 --lon-max 29.292
python main.py --p 0 --lat-min 40.83 --lat-max 40.875 --lon-min 29.233 --lon-max 29.292
python test_receive.py
If you want to fetch data using Selenium, uncomment fetch/Scrapper.py line 145