我正在尝试登录需要身份验证的站点并尝试下载文件
我的代码:
import requests
site_url='https://www.example.com'
userid='abc'
password='abc123'
resp = requests.get(site_url, auth=(userid, password))
但我得到ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
的帮助。