diff --git a/packages/test.py b/packages/test.py new file mode 100644 index 0000000..d1c0dd8 --- /dev/null +++ b/packages/test.py @@ -0,0 +1,24 @@ +#["test", "packages.netget", ["netget"]] +# Made By OusmeBlueNinja +import os, sys + + +def netget(command: list): + + print(command, len(command)) + if len(command) != 2: + print("comand requires [ url ] [ path ]") + return + + url = command[0] + location = command[1] + try: + import wget + wget.download(url, location) + except ImportError: + os.system(f"wget {url} -O {location}") + + except: + print("cannot download") + +