403Error-Fail to get_config
Add headers['Accept'] to prevent 403 error from speedtest server
Looks great. Tested it with latest 2.1.3 commit 42e96b1 from pip. @sivel can you take a look. Would be great to get a fix release. This 403 are piling up lately. The other PRs just force secure request on default.
when i wrote the python program as described it gives 15-20 times download speed and 5-6 times upload speed then other online websites like "ookla " code that it write after searching on internet # import speedtest module import speedtest
def bytes_to_mb(bytes): KB = 1024 # One Kilobyte is 1024 bytes MB = KB * 1024 # One MB is 1024 KB return int(bytes/MB)
speed_test = speedtest.Speedtest()
download_speed = speed_test.download() print("Your Download speed is", download_speed)
upload_speed = speed_test.upload() print("Your Upload speed is", upload_speed)
download_speed = bytes_to_mb(download_speed) upload_speed = bytes_to_mb(upload_speed)
print("Your Download speed is", download_speed, "MB") print("Your Upload speed is", upload_speed, "MB")
Output Your Download speed is 2156989416.089659 Your Upload speed is 620944653.8589141 Your Download speed is 2057 MB Your Upload speed is 592 MB
look into it
Duplicate of https://github.com/sivel/speedtest-cli/pull/790