-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Home
Laurent Ghirardotti edited this page May 31, 2017
·
16 revisions
Welcome to the speedtest-cli wiki!
import speedtest
servers = []
# If you want to test against a specific server
# servers = [1234]
s = speedtest.Speedtest()
s.get_servers(servers)
s.get_best_server()
s.download()
s.upload()
s.share()
results_dict = s.results.dict()
s.upload(pre_allocate=False)
s = speedtest.Speedtest()
s.get_best_server(s.set_mini_server("http://speedtest.test.fr/"))
s.download()
source = "192.168.1.100"
speedtest.SOURCE = source
socket.socket = speedtest.bound_socket
s = speedtest.Speedtest()
s.get_best_server()
s.download()
s.upload()