Cleaning up Arma 3 mods
This script finds Arma 3 mods that are unsubscribed but still located on the disk. The mods get moved into a separate directory (displayed at the end of the script) where the user can then delete them.
Setting up
-
Copy (or rename)
secret.py.example
tosecret.py
and add your steam profile URL, steam workshop path and a steamcommunity.com cookie (see below). -
Create a virtual environment:
sudo apt install python3-venv python3-pip python3 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
-
Install required packages:
pip install -r requirements.txt
-
Run the script with
python3 main.py
Finding the cookie
Warning: This cookie gives the script full access to your steam account. Do not input the cookie into any script you do not trust.
- Navigate to https://steamcommunity.com
- Log in to your steam account
- Open the Developer Tools (F12 or Ctrl+Shift+I)
- Go to the Application tab
- Find the cookie called
steamLoginSecure
and copy the content tosecret.py