小编cby*_*oda的帖子

SSL 错误:HTTPS 连接池

我正在尝试通过以下代码从 IMDB 中抓取一些电影评论:

import requests
from time import sleep
url='https://www.imdb.com/title/tt0068646/reviews?ref_=tt_urv'
response= requests.get(url)
Run Code Online (Sandbox Code Playgroud)

并收到此错误:

SSLError: HTTPSConnectionPool(host='www.imdb.com', port=443): Max retries exceeded with url: /title/tt0068646/reviews?ref_=tt_urv (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
Run Code Online (Sandbox Code Playgroud)

有什么想法吗?

html python web

5
推荐指数
1
解决办法
8680
查看次数

标签 统计

html ×1

python ×1

web ×1