gfmapdl is a simple map downloader for GameFAQs contributors.
Releases come in two versions
| File | Description |
|---|---|
| gfmapdl | Platform-independent zipapp file. Needs Python to run |
| gfmapdl.exe | Windows x64 binary |
Download the repository and then install the requirements:
pip install -r requirements.txt
This script requires the following third party libraries and their dependencies:
- beautifulsoup4
- filetype
- httpx
- latest_user_agents
- rich
Platform-independent zipapp file basic usage looks like:
./gfmapdl StarFighters76
Or Windows x64 binary:
.\gfmapdl.exe StarFighters76
This would download all the maps found in StarFighters76's profile to the following folder:
./maps/StarFighters76
The script will also skip any maps with the same name that is in the download folder.
usage: gfmapdl.py [-h] [-p PATH] [--wait WAIT] [--dlcount DLCOUNT] [--overwrite]
[--verbose [VERBOSE]] [-v]
[gfuser]
Supply a GameFAQs username to download all maps and charts
positional arguments:
gfuser gamefaqs.gamespot.com username to get maps from
(required)
options:
-h, --help show this help message and exit
-p PATH, --path PATH save directory to download to (default: maps/<user>)
--wait WAIT wait time in seconds when script needs to pause (default:
30)
--dlcount DLCOUNT how many downloads before waiting (default: 150)
--overwrite overwrites existing files (useful if existing maps have
been updated)
--verbose [VERBOSE] print detailed information to console. Detail options:
debug, info, warning, error, critical
-v, --version show program's version number and exit
- Download repository
- Create directories in the downloaded files called zipapp and dist
- Copy gfmapdl.py to the zipapp directory
- Rename gfmapdl.py in the zipapp directory to __main__.py
- Install dependencies to the zipapp directory with the following command
python -m pip install -t zipapp -r requirements.txt --no-binary ":all:" - Build zipapp with the command
python -m zipapp -p "/usr/bin/env python3" -c -o dist/gfmapdl zipapp
- Install pyinstaller with the command
python -m pip install pyinstaller - Build the binary with the command
pyinstaller gfmapdl.py --onefile - Finished binary is located in the dist folder