wangluozhe / requests-go

go版requests的python版本,支持tls,http2,ja3指纹自定义
MIT License
179 stars 47 forks source link

未知的EOF 错误 #8

Closed gospider007 closed 1 year ago

gospider007 commented 1 year ago

版本 0.3

import requests_go
url = "https://tools.scrapfly.io/api/fp/anything"
headers = {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
}
tls = requests_go.tls_config.TLSConfig()
session=requests_go.Session()
response = session.get(url=url, headers=headers,tls_config=tls)
print(response.text)
  File "C:\ProgramData\miniconda3\lib\site-packages\requests_go\tls_client\request.py", line 85, in request
    raise TLSClientExeption("requests_go error:", rs)
requests_go.tls_client.exceptions.TLSClientExeption: [Errno requests_go error:] {"err": "Get "https://tools.scrapfly.io/api/fp/anything": EOF"}