speed-test

how to force python call to speedtest.py use secure servers

how to force python call to speedtest.py use secure servers Question: I’m calling speedtest.py from my python program in order to run a speed test. After importing speedtest.py I create a speedtest object using s = speedtest.Speedtest() servers = s.get_best_server() then run upload/download tests. This has been working, but recently it has been failing. I …

Total answers: 1

TypeError: 'float' object is not callable speedtest python

TypeError: 'float' object is not callable speedtest python Question: import speedtest st = speedtest.Speedtest() print(‘Loading server…’) st.get_servers() print(‘Choosing best server…’) server = st.get_best_server() print(f’Found: {server["host"]} located in {server["country"]} ‘) print(‘Performing doonload…’) resDownload = st.download() print(‘Perfotming upload…’) resUpload = st.upload() resPing = st.results.ping() print(f”’ — SPEED TEST COMPLETE — Download speed [{resDownload / 1024 / 1024:.2f} …

Total answers: 2

python 'speedtest' has no attribute 'Speedtest'

python 'speedtest' has no attribute 'Speedtest' Question: I am trying to get the download and upload speed in python by using the "speedtest" module, but it gives me that error when I use the module: AttributeError: module ‘speedtest’ has no attribute ‘Speedtest’. and I was only declaring the variable, that is my code : import …

Total answers: 9

speedtest module in python

speedtest module in python Question: i’m trying to use the speedtest module in python, i run "pip install speedtest-cli" as admin from command prompt, it works in the command prompt and gives me the results when running "speedtest-cli" But in PyCharm it wont work, this is what I have import speedtest st = speedtest.Speedtest() st.get_best_server() …

Total answers: 3

speedtest-cli works in console, but not as script

speedtest-cli works in console, but not as script Question: I am trying to use the speedtest-cli api. Copied part of the code from official wiki (and removed unused stuff): import speedtest s = speedtest.Speedtest() s.get_best_server() s.download() In python console I get everything ok: >>> import speedtest >>> s = speedtest.Speedtest() >>> s.get_best_server() {HIDDEN} >>> s.download() …

Total answers: 5