This project scrapes vessel tracking data from MarineTraffic and VesselFinder using Python.
- Python Version: 3.12
python3.12 -m venv venv
source venv/bin/activate
venv\Scripts\activate
pip install -r requirements.txt
This project uses a .env
file to manage various settings and credentials. Example:
CAPTCHA_SOLVER_API_KEY="xxx"
PARALLEL=4
# OUTPUT_DIR="/..path to dir.../output2"
# SEARCH_TERMS_FILEPATH="/..path to dir.../sample_data.csv"
# PROXY=["https://13.34.23.23:90", "https://13.34.23.23:9000"]
Run the script with the desired argument:
python main.py --name vesselfinder --terms "EVER EAGLE" "INTERSEA TRAVELER" "W KITHIRA"
python main.py --name marinetraffic --terms "EVER EAGLE" "INTERSEA TRAVELER" "W KITHIRA"
vesselfinder
- Runs only the VesselFinder scraper.marinetraffic
- Runs only the MarineTraffic scraper.
- Ensure you have internet access to fetch data.
- Logs will indicate where the scraped data is saved.
This project is for personal or educational use. Modify and use as needed!