Recent Topics

Ads

Download all addons with Python script

Here you can post addons, or anything related to addons.
Forum rules
Before posting on this forum, be sure to read the Terms of Use
shuraken007
Posts: 1

Download all addons with Python script

Post#1 » 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.

Ads
PolloJack
Posts: 7

Re: Download all addons with Python script

Post#2 » Fri Nov 10, 2023 1:29 am

Is using all the possible bandwidth for to download addons you wont use really needed?

Seravajan
Posts: 160

Re: Download all addons with Python script

Post#3 » Fri Nov 10, 2023 7:55 pm

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.

User avatar
inoeth
Suspended
Posts: 513

Re: Download all addons with Python script

Post#4 » Sat Nov 11, 2023 4:49 pm

my guess: bot account

Seravajan
Posts: 160

Re: Download all addons with Python script

Post#5 » Sat Nov 11, 2023 5:48 pm

Mine? I'm not a bot.

Who is online

Users browsing this forum: No registered users and 15 guests