Webscraping,read_html()-open.connection(x,“ rb”)中的错误:SSL证书问题:证书已过期

问题描述 投票:0回答:1

我目前正在尝试建立一个小型网络爬虫。

我正在使用以下代码来抓取网站:

webpage <- "https://www.whisky.de/shop/Schottland/Single-Malt/Macallan-Triple-Cask-15-Jahre.html"
content <- read_html(webpage)

但是,当我使用read_html命令运行第二行时,出现以下错误消息:

open.connection(x,“ rb”)中的错误:SSL证书问题:证书已过期

你们有人知道这是哪里来的吗?几天前使用它时,它没有任何问题。

我正在使用Mac OS X 10.15.5,RStudio(1.2.5033)我还安装了库“ rvest”

非常感谢您的提前帮助!

r web-scraping
1个回答
0
投票
您可以改用此方法,但是不确定使用Windows系统时是否可以使用。

webpage <- "https://www.whisky.de/shop/Schottland/Single-Malt/Macallan-Triple-Cask-15-Jahre.html" content <- read_html(GET(webpage))

我希望这会有所帮助!

© www.soinside.com 2019 - 2024. All rights reserved.