Package: gfw
gfw : Simple CLI for Global Fishing Watch DataThe Global Fishing Watch map is the first open-access online platform for visualization and analysis of vessel-based human activity at sea, including fishing activity, encounters between vessels, night light vessel detection and vessel presence. This tool is designed to help interact programmatically with theGlobal Fishing Watch dataand is not based on any official API so expect features to break once in a while.Disclaimer: This is an unofficial tool. Is not licensed or endorsed by Global Fishing Watch. It is created and maintained by Samapriya Roy.CitationSamapriya Roy. (2022). samapriya/gfw: Simple CLI for Global Fishing Watch Data (0.0.4).
Zenodo. https://doi.org/10.5281/zenodo.5937071Readme Docsavailable onlineTable of contentsGetting startedauthdata-listfile-listdownloadGetting startedThe tool is a simple standalone tool and the requirements for the setup are included in the requirements.txt file. Depending on the OS and the python version you should be able to simply runpip install -r requirements.txtTo install gfw: Simple CLI for Global Fishing Watch Datapip install gfwor you can also trygit clone https://github.com/samapriya/gfw.git
cd gfw
python setup.py installMain screengfw -h
usage: gfw [-h] {auth,data-list,file-list,download} ...

Simple CLI for Global Fishing Watch Data

positional arguments:
  {auth,data-list,file-list,download}
    auth                Authenticates and saves your username and password
    data-list           Generate data list with Dataset ID & timestamp
    file-list           File list for dataset
    download            Download datasets

optional arguments:
  -h, --help            show this help message and exitauthThe auth or authentication tool allows the user to use their name and password used for logging into Global Fishing Watch. This is stored locally and a bearer token is generated every time the tool is being used from the saved credentials.data-listThe data list tool fetches the datasets from the datasets and code page of global fishing watch. It then prints a table with both dataset id and the last updated date and time. Incase the server returns a status code of 500, a last updated datasets.json file is used to generate a dataset list.file-listThe file list tool fetches files inside a dataset and uses the dataset id to search for and print details about each file in the dataset. The tool also prints file size per file as well as total download size estimate.downloadThe download tool can only be utilized for area of interest that have been saved to my areas. As such this tool utilizes either the AOI name or ID. This submits the request and then waits for zipping to complete to then download a single zip files with all sources.You can also download a specific file from the file-list toolChangelogv0.0.4added readme pagesupdated tool description and readmev0.0.3added nested check for JSON objects from data listauto updation of datasets.json file as new datasets become availableupdated Readmev0.0.2added tabulate to print dataset id and last updated tableadded offline JSON parser for 500 Internal Server Error from GFWgeneral improvements and cleanup