Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403Error-Fail to get_config #792

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tesonwang
Copy link

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

Add headers['Accept'] to prevent 403 error from speedtest server
@tesonwang tesonwang changed the title Fail to get_config 403Error-Fail to get_config Nov 22, 2022
@ChrisChoke
Copy link

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.

@dr4gonshadow
Copy link

dr4gonshadow commented Dec 13, 2022

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

@artickl
Copy link

artickl commented Jun 27, 2023

Duplicate of #790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants