AI智能
改变未来

一个基于Python 3的Pixiv爬虫,可下载画师和排行榜原图

而且很奇怪,直接在vps(美国)上运行脚本,也不行

Traceback (most recent call last):
File “/usr/lib64/python3.6/urllib/request.py”, line 1318, in do_open

File “/usr/lib64/python3.6/http/client.py”, line 1254, in request

File “/usr/lib64/python3.6/http/client.py”, line 1300, in _send_request

File “/usr/lib64/python3.6/http/client.py”, line 1249, in endheaders

File “/usr/lib64/python3.6/http/client.py”, line 1036, in _send_output

File “/usr/lib64/python3.6/http/client.py”, line 974, in send

File “/usr/lib64/python3.6/http/client.py”, line 1407, in connect

File “/usr/lib64/python3.6/http/client.py”, line 946, in connect

File “/usr/lib64/python3.6/socket.py”, line 724, in create_connection

File “/usr/lib64/python3.6/socket.py”, line 713, in create_connection

TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “pixiv.py”, line 147, in <module>

File “pixiv.py”, line 65, in get_item

File “pixiv.py”, line 28, in _http

File “/usr/lib64/python3.6/urllib/request.py”, line 223, in urlopen

File “/usr/lib64/python3.6/urllib/request.py”, line 526, in open

File “/usr/lib64/python3.6/urllib/request.py”, line 544, in _open

File “/usr/lib64/python3.6/urllib/request.py”, line 504, in _call_chain

File “/usr/lib64/python3.6/urllib/request.py”, line 1361, in https_open

File “/usr/lib64/python3.6/urllib/request.py”, line 1320, in do_open

urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>

而且很奇怪,直接在vps(美国)上运行脚本,也不行

Traceback (most recent call last):
File “/usr/lib64/python3.6/urllib/request.py”, line 1318, in do_open

File “/usr/lib64/python3.6/http/client.py”, line 1254, in request

File “/usr/lib64/python3.6/http/client.py”, line 1300, in _send_request

File “/usr/lib64/python3.6/http/client.py”, line 1249, in endheaders

File “/usr/lib64/python3.6/http/client.py”, line 1036, in _send_output

File “/usr/lib64/python3.6/http/client.py”, line 974, in send

File “/usr/lib64/python3.6/http/client.py”, line 1407, in connect

File “/usr/lib64/python3.6/http/client.py”, line 946, in connect

File “/usr/lib64/python3.6/socket.py”, line 724, in create_connection

File “/usr/lib64/python3.6/socket.py”, line 713, in create_connection

TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “pixiv.py”, line 147, in <module>

File “pixiv.py”, line 65, in get_item

File “pixiv.py”, line 28, in _http

File “/usr/lib64/python3.6/urllib/request.py”, line 223, in urlopen

File “/usr/lib64/python3.6/urllib/request.py”, line 526, in open

File “/usr/lib64/python3.6/urllib/request.py”, line 544, in _open

File “/usr/lib64/python3.6/urllib/request.py”, line 504, in _call_chain

File “/usr/lib64/python3.6/urllib/request.py”, line 1361, in https_open

File “/usr/lib64/python3.6/urllib/request.py”, line 1320, in do_open

urllib.error.URLError: <urlopen error [Errno 110] Connection timed out>

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » 一个基于Python 3的Pixiv爬虫,可下载画师和排行榜原图