title: Speedtest python script
body: <p>Hello there i'm new to python and I'm trying to do speed testing using python getting data from (speedtest.net). I have been looking through git hub and found the speedtest-cli. But it has a lot of features I don't need. I just want to make a simple script that will run 3 times. I found some API but I'm not sure how to modify it to loop three times. Any help will be appreciated. Thanks in advance</p>
  
  <pre><code>import speedtest
  
  servers = []
  # If you want to test against a specific server
  # servers = [1234]
  x=0
  for x in range(0, 2):
      s = speedtest.Speedtest()
      s.get_servers(servers)
      s.get_best_server()
      s.download()
      s.upload()
      s.results.share()
      results_dict = s.results.dict()
  </code></pre>