学python爬虫,运行spider_post程序后,这个要怎么办???
F:\python\python.exe -X pycache_prefix=C:\Users\33447\AppData\Local\JetBrains\PyCharmCE2024.2\cpython-cache "F:/PyCharm Community Edition 2024.2.1/plugins/python-ce/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 7606 --file D:\Documents\pycharm\p14\spider_post.py
已连接到 pydev 调试器(内部版本号 242.21829.153)请输入要查询的外汇:日元
Traceback (most recent call last):
File "F:\python\lib\urllib\request.py", line 1350, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "F:\python\lib\http\client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "F:\python\lib\http\client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "F:\python\lib\http\client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "F:\python\lib\http\client.py", line 1010, in _send_output
self.send(msg)
File "F:\python\lib\http\client.py", line 950, in send
self.connect()
File "F:\python\lib\http\client.py", line 1417, in connect
super().connect()
File "F:\python\lib\http\client.py", line 921, in connect
self.sock = self._create_connection(
File "F:\python\lib\socket.py", line 808, in create_connection
raise err
File "F:\python\lib\socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\python\lib\urllib\request.py", line 1353, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10061] 由于目标计算机积极拒绝,无法连接。>