This commit is contained in:
OusmBlueNinja 2023-08-27 00:03:25 -05:00
parent bffbeb3b68
commit 3b97d699aa

24
packages/test.py Normal file
View File

@ -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")