Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

connection refused #66

Description

@Long199for

I'm running your example, and got time out on ssl or refused. And I found that even if I use:
import requests
h = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36",
}
r = requests.get('https://api-testnet.bybit.com/spot/quote/v1/kline?symbol=ETHUSDT&interval=5m', headers=h)

I still got refused.

while if I use:
import urllib.request

req = urllib.request.Request(web, headers=headers_)
data = urllib.request.urlopen(req).read().decode("utf-8",'ignore')
print(data)

I could get the result.
We know that the kline is unauthorized url. So I wonder if requests library is treated as ROBOT ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions