-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathversion2.py
More file actions
25 lines (19 loc) · 810 Bytes
/
version2.py
File metadata and controls
25 lines (19 loc) · 810 Bytes
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
import pyfiglet
from speedtest import Speedtest
netsp=Speedtest()
baner=pyfiglet.figlet_format("speedify")
print(baner,end=' ')
print('\t\t\t\t\tby naqviO7')
print('[+] Choosing Best Server.')
bestserver=netsp.get_best_server()
print(f"[+] Best Server is: {bestserver['host']} in {bestserver['country']}")
print('[+] Preforming Download Speed Test.')
download_result=netsp.download()
print('[+] Preforming Upload Speed Test.')
upload_result=netsp.upload()
ping_result=netsp.results.ping
print('\n---------------------- Scan Results ----------------------')
print(f"[!] Download Speed: {download_result/1024/1024:.2f} Mbits/s")
print(f"[!] Upload Speed: {upload_result/1024/1024:.2f} Mbits/s")
print(f"[!] Ping: {ping_result:.2f} ms")
print('----------------------------------------------------------\n')