python爬ppt和风景_Python小工具爬取PPT模板

报错,求楼主解决,谢谢

D:\pptdown目录已存在

Traceback (most recent call last):

File "site-packages\urllib3\connectionpool.py", line 426, in _make_request

File "", line 3, in raise_from

File "site-packages\urllib3\connectionpool.py", line 421, in _make_request

File "http\client.py", line 1322, in getresponse

File "http\client.py", line 303, in begin

File "http\client.py", line 264, in _read_status

File "socket.py", line 669, in readinto

socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "site-packages\urllib3\connectionpool.py", line 670, in urlopen

File "site-packages\urllib3\connectionpool.py", line 428, in _make_request

File "site-packages\urllib3\connectionpool.py", line 335, in _raise_timeout

urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='www.ypppt.com', po

rt=80): Read timed out. (read timeout=10)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "site-packages\requests\adapters.py", line 439, in send

File "site-packages\urllib3\connectionpool.py", line 724, in urlopen

File "site-packages\urllib3\util\retry.py", line 439, in increment

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='www.ypppt.com', port=

80): Max retries exceeded with url: /p/d.php?aid=5575 (Caused by ReadTimeoutErro

r("HTTPConnectionPool(host='www.ypppt.com', port=80): Read timed out. (read time

out=10)"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "spider.py", line 66, in

File "site-packages\requests\api.py", line 76, in get

File "site-packages\requests\api.py", line 61, in request

File "site-packages\requests\sessions.py", line 530, in request

File "site-packages\requests\sessions.py", line 643, in send

File "site-packages\requests\adapters.py", line 516, in send

requests.exceptions.ConnectionError: HTTPConnectionPool(host='www.ypppt.com', po

rt=80): Max retries exceeded with url: /p/d.php?aid=5575 (Caused by ReadTimeoutE

rror("HTTPConnectionPool(host='www.ypppt.com', port=80): Read timed out. (read t

imeout=10)"))

[276908] Failed to execute script spider

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值