解决python脚本连接终止问题_ConnectionAbortedError:[WinError 10053]已建立的连接已被主机中的软件中止...

Traceback(most recent call last):File"C:\Users\Anthony\Desktop\test.py",line271,inbackers_profile=container.find_elements_by_xpath('./*/div[@class="campaignBackers-pledge-backer-details"]/a')File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webelement.py",line381,infind_elements_by_xpathreturnself.find_elements(by=By.XPATH,value=xpath)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webelement.py",line680,infind_elements{"using":by,"value":value})['value']File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webelement.py",line628,in_executereturnself._parent.execute(command,params)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py",line318,inexecute

response=self.command_executor.execute(driver_command,params)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\remote_connection.py",line472,inexecutereturnself._request(command_info[0],url,body=data)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\remote_connection.py",line495,in_request

self._conn.request(method,parsed_url.path,body,headers)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\http\client.py",line1229,inrequest

self._send_request(method,url,body,headers,encode_chunked)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\http\client.py",line1275,in_send_request

self.endheaders(body,encode_chunked=encode_chunked)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\http\client.py",line1224,inendheaders

self._send_output(message_body,encode_chunked=encode_chunked)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\http\client.py",line1055,in_send_output

self.send(chunk)File"C:\Users\Anthony\AppData\Local\Programs\Python\Python37\lib\http\client.py",line977,insend

self.sock.sendall(data)ConnectionAbortedError:[WinError10053]Anestablished connection was aborted by the softwareinyour host machine