Command line interface for testing internet bandwidth using speedtest.net. Speedtest on pypi.org
Questions tagged [speed-test]
103 questions
7
votes
2 answers
Upload and Download rate profiling in Android
I'm trying to develop an Android app to measure the upload and download speed of my network, which probably I would need to run and profile it every 2 seconds or so. SpeedTest.net app is an ideal app working similarly, however, it is not…

Tina J
- 4,983
- 13
- 59
- 125
6
votes
10 answers
python 'speedtest' has no attribute 'Speedtest'
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…

PXL Desiner
- 73
- 1
- 1
- 8
6
votes
7 answers
PHP Speed Test for user connection speed without echo in current page
I am looking for a possibility to check the user connection speed. It is supposed to be saved as a cookie and javascript files as well as css files will be adapted if the speed is slow.
The possibility for testing speed i have at the moment ist the…

Lukas Oppermann
- 2,918
- 6
- 47
- 62
5
votes
5 answers
speedtest-cli works in console, but not as script
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…

Makalone LOgman
- 948
- 1
- 12
- 25
5
votes
0 answers
Android API for sampling download and upload speed
This is not really a programming question right now, and is more like a start point. I'm trying to write an Android app to take samples every few seconds and profile download and upload speed, plus some more information such as time stamp, longitude…

Tina J
- 4,983
- 13
- 59
- 125
3
votes
6 answers
AS3 Upload speed test
I'm making an speedtest on AS3. And got such a problem.
I'm using URLLoader( ) in my test, and for download test it work very good, but for uploading test i got some troubles. I'm sending some binary data to my php-script, and checking the…

Den
- 601
- 3
- 10
3
votes
3 answers
Java network file transfer problem
I am writing a small java program that can measure the speed of my local network. It is the first time I am working with sockets but I've put together a program that works. The only problem is that the measurements are far from accurate (way too…

Jens
- 1,499
- 3
- 17
- 28
3
votes
2 answers
Website speedtest. Problem with gzip?
I am about to implement a internet connection speedtest in our web application. There is no requirement that it has to be a very advanced feature so I started to make it as simple as I could.
The idea is to fetch some data from a HttpHandler and see…

John
- 2,043
- 5
- 28
- 49
3
votes
6 answers
How to test what method implementation runs faster
While the question check if input is type of string has been closed two of the answers spiked a micro-optimization question in my mind: which of the below two solutions would perform better?
Reed Copsey provided a solution using…

ahsteele
- 26,243
- 28
- 134
- 248
3
votes
2 answers
Simple upload speed test
I created simple upload speed test, see code below:
try {
HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
byte [] array = new byte [1 * 1024 * 1024]; // 1 Mb data test
MultipartEntity multipartEntity = new…

qkx
- 2,383
- 5
- 28
- 50
3
votes
1 answer
How to detect nearest server to test latency/ping speed using Javascript?
I'm implementing a browser extension which should connect to the nearest server to test the ping speed.
To have more details, kindly have a look on SpeedTest, it first calculates the ping time. And to calculate this ping time, it detects the nearest…

Ashraf Bashir
- 9,686
- 15
- 57
- 82
2
votes
1 answer
Python speedtest.py failing to connect to Internet when run from cron
I have the following code
#!/usr/bin/python3.8
import subprocess
import requests
import datetime
import…

Hikari
- 3,797
- 12
- 47
- 77
2
votes
2 answers
Python Speedtest facing problems with certification _ssl.c:1056
I am trying to use the following code, on Speedtest API
def get_bytes(self):
s = speedtest.Speedtest()
s.get_best_server()
s.download()
s.upload()
res = s.results.dict()
print(res["download"],…

Raphael Castilho Gil
- 149
- 1
- 14
2
votes
1 answer
Client-side Speed Test
I am attempting to build an application that allows users to run a speedtest on the WiFi network they are connected to.
Obviously this is doable. There are many such stand alone speedtest apps: Speedtest.net and Google for example.
There are many…

currenthandle
- 1,038
- 2
- 17
- 34
2
votes
2 answers
Network Bandwidth testing or speed testing in python 2.7
I am needing to test network bandwidth between a client and a server. I can do a simple drag and drop of the file and I get somewhere in the 800meg range according to the windows network monitor. The goal is to perform this same test using a python…

turtle02
- 603
- 3
- 10
- 17