Download all addons with Python script
Posted: Thu Nov 02, 2023 5:18 pm
Hello. I made small script to download all addons from https://tools.idrinth.de/addons/
with python3.
https://pastebin.com/pBGuYELB
1. download&install python3:
From site https://www.python.org/downloads/
Or from windows store (run python3 from cmd and windows11 will let you install python3 from store automatically).
2. add 2 extra python libs with command line:
`pip3 install requests bs4`
3. load script https://pastebin.com/pBGuYELB and save it somewhere with .py extension
`addons_load.py` as example
4. Configure some variables in script (open it as text file)
`DOWNLOADS_DIR = "C:\\Games\\WOROR\\Interface\\AddOns"`
this is exists folder, where script will load addons (it'll override already existing)
I used mine empty Interface\Addons folder
5. run script from command line (start + r -> cmd)
python3 C:\\Downloads\\addons_load.py
Script will:
- parse site https://tools.idrinth.de/addons/ for tags with `/download/` in 'href'
- load all zip files to TMP_DIR (which is C:\\tmp by default) by that links
- unzip files to DOWNLOADS_DIR
If smbdy have free time - you can improve script, add that folders as command line arguments, make exe file, do what you want.
with python3.
https://pastebin.com/pBGuYELB
1. download&install python3:
From site https://www.python.org/downloads/
Or from windows store (run python3 from cmd and windows11 will let you install python3 from store automatically).
2. add 2 extra python libs with command line:
`pip3 install requests bs4`
3. load script https://pastebin.com/pBGuYELB and save it somewhere with .py extension
`addons_load.py` as example
4. Configure some variables in script (open it as text file)
`DOWNLOADS_DIR = "C:\\Games\\WOROR\\Interface\\AddOns"`
this is exists folder, where script will load addons (it'll override already existing)
I used mine empty Interface\Addons folder
5. run script from command line (start + r -> cmd)
python3 C:\\Downloads\\addons_load.py
Script will:
- parse site https://tools.idrinth.de/addons/ for tags with `/download/` in 'href'
- load all zip files to TMP_DIR (which is C:\\tmp by default) by that links
- unzip files to DOWNLOADS_DIR
If smbdy have free time - you can improve script, add that folders as command line arguments, make exe file, do what you want.