Closed gospider007 closed 1 year ago
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"}
版本 0.3