NetherWorkshopDownloader2 Indepth [OLD] - NethercraftMC5608/NetherWorkshopDownloader GitHub Wiki

NetherWorkshopDownloader2 Source Code Snippets

You wanna see the insides of NetherWorkshopDownloader? [OLD] Made in python.

I dont really wan't to share all the source code in one bit, but in snippets. I just wan't people to know how it works and trust it and what not.

V1.0C Source Code Password is at the bottom of this page.

Any unobfuscated code can be used, but credit must be given.

Modules used for NetherWorkshopDownloader

from tkinter import * import requests import time import threading import shutil from sys import exit

from tkinter import filedialog from tkinter import messagebox as mb from PIL import ImageTk, Image from tkinter.ttk import Progressbar

import os, ctypes import subprocess import re

You can get the general gist of what and how the project runs. For example, I use tkinter for the Gui. OS to manage the operating system (create folders,files) and threading to enable multithreading on NetherWorkshopDownloader which makes it very fast.

Snippet 1

image

Snippet 1 is a very basic administrator check tool, because to change powershell previleges, you need administrator. So it detects whether you launched NetherWorkshopDownloader in administrator and if you didn't, it makes a tkinter messagebox. But if you do it runs (idk why i put pass but it works i guess)

Snippet 2

image

Snippet 2 is the code which will tell you to enable powershell scripts. Because the collection id finder (Core.ps1) needs powershell. so simple. if you agree it will enable powershell and set execution policy to unrestricted. but this could be dangerous however. (More here) root.destroy() really means just to destroy the main window (called root) and it will automatically terminate the application as everything runs in the root window, everything else is just a toplevel window.

More coming soon...

pass.txt