|
错误描述进行Python爬虫时出现报错:[WinError10061]由于目标计算机积极拒绝,无法连接。Traceback(mostrecentcalllast):File"C:\Users\pc\AppData\Roaming\Python\Python39\site-packages\urllib3\connection.py",line174,in_new_connconn=connection.create_connection(File"C:\Users\pc\AppData\Roaming\Python\Python39\site-packages\urllib3\util\connection.py",line95,increate_connectionraiseerrFile"C:\Users\pc\AppData\Roaming\Python\Python39\site-packages\urllib3\util\connection.py",line85,increate_connectionsock.connect(sa)ConnectionRefusedError:[WinError10061]由于目标计算机积极拒绝,无法连接。Duringhandlingoftheaboveexception,anotherexceptionoccurred:Traceback(mostrecentcalllast):File"C:\Users\pc\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py",line711,inurlopenself._prepare_proxy(conn)File"C:\Users\pc\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py",line1007,in_prepare_proxyconn.connect()File"C:\Users\pc\AppData\Roaming\Python\Python39\site-packages\urllib3\connection.py",line363,inconnectself.sock=conn=self._new_conn()File"C:\Users\pc\AppData\Roaming\Python\Python39\site-packages\urllib3\connection.py",line186,in_new_conn12345678910111213141516171819
|
|