-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetaload.py
More file actions
58 lines (47 loc) · 1.93 KB
/
Copy pathMetaload.py
File metadata and controls
58 lines (47 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import requests
import sys
import datetime
from datetime import *
from time import *
#introduction
Author = "XEFT"
Copyright = "Xeft software 2022 ©"
Name = "Metaload_lite.py"
Time = time()
print("How To use: simply paste the web address of the document to download it")
print("You can download any documents online so far as you are with the download link")
print("Your current time is "+ ctime(Time))
Active = True
while Active:
br = input("Please Provide your download Link here: ")
type = input("File Type: ")
Time = time()
start = perf_counter()
Url = requests.get(br)
br0, br1 = br.split(".com/") #default website extension
"""Please write your website extension. Extensions: br.split(".ng/"), br.split(".ng/"), br.split(".org/"), br.split(".uk/"), br.split(".co/"), etc"""
format = "wb"
if Url.status_code == 200:
print("Your file started downloading by", ctime(Time))
print("File Downloading....")
print("Successful")
Rename = br1
Rename = input("Set file name: ")+type
with open(Rename, format)as f:
f.write(Url.content)
end = perf_counter()
Total = (end - start)
Time = time()
print("Your file Stopped downloading by", ctime(Time))
print("It Took", Total,"sec to download")
print("Your files has been downloaded Please Kindly search", Rename, "in the folder you saved this script")
elif Url.status_code == 500:
print("Failed")
print("Sorry we couldn't find your download link")
con = input("Do you want to quit: YES/NO: ")
if con == "NO":
Active =True
else:
Active = False
sys.exit("Goodbye Thanks for using Metaload lite.py")
break