speedtest-cli icon indicating copy to clipboard operation
speedtest-cli copied to clipboard

403Error-Fail to get_config

Open tesonwang opened this issue 3 years ago • 3 comments

Add headers['Accept'] to prevent 403 error from speedtest server

tesonwang avatar Nov 22 '22 06:11 tesonwang

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.

ChrisChoke avatar Nov 22 '22 08:11 ChrisChoke

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

dr4gonshadow avatar Dec 13 '22 14:12 dr4gonshadow

Duplicate of https://github.com/sivel/speedtest-cli/pull/790

artickl avatar Jun 27 '23 19:06 artickl