From 3b97d699aaef04bd86a638f4abe896662b0b7ccd Mon Sep 17 00:00:00 2001 From: OusmBlueNinja Date: Sun, 27 Aug 2023 00:03:25 -0500 Subject: [PATCH] bug test --- packages/test.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 packages/test.py 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") + +