TermPY/packages/netget.py
GirlInPurple 3b5dcfc081 pip package
new file:   .gitignore
	new file:   packages/pip.py
2023-08-26 22:22:28 -04:00

25 lines
494 B
Python

#["netget", "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")