Page 1 of 1

Download all addons with Python script

Posted: Thu Nov 02, 2023 5:18 pm
by shuraken007
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.

Re: Download all addons with Python script

Posted: Fri Nov 10, 2023 1:29 am
by PolloJack
Is using all the possible bandwidth for to download addons you wont use really needed?

Re: Download all addons with Python script

Posted: Fri Nov 10, 2023 7:55 pm
by Seravajan
Step 2 does not work for me. And has all directory backslashes be replaced with double backslashes?

Edit: Noticed that step 2 and the script does not work with python 3.12.

Re: Download all addons with Python script

Posted: Sat Nov 11, 2023 4:49 pm
by inoeth
my guess: bot account

Re: Download all addons with Python script

Posted: Sat Nov 11, 2023 5:48 pm
by Seravajan
Mine? I'm not a bot.