Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pip install speedtest-cli
- # pip install speedtest
- import speedtest
- st = speedtest.Speedtest()
- option = int(input('''
- Type:
- 1 - Speed downloading
- 2 - Speed uploading
- 3 - Ping
- You're choose: '''))
- if option == 1:
- print(st.download())
- elif option == 2:
- print(st.upload())
- elif option == 3:
- servernames =[]
- st.get_servers(servernames)
- print(st.results.ping)
- else:
- print("Please choose 1/2/3!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement