刮擦时如何解决此错误?它说“证书已过期”
该网站为 https:///en.wikipedia.orgipedia.orgg/wiki/wiki/wiki/list_national_capitals_capitals_capitals
base_site = "https://en.wikipedia.org/wiki/List_of_national_capitals_by_population"
tables = pd.read_html(base_site)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)>
为什么会弹出此错误消息?另外,错误消息还有更多。
The website is https://en.wikipedia.org/wiki/List_of_national_capitals_by_population
I'm trying to scrape the table with the national capitals
base_site = "https://en.wikipedia.org/wiki/List_of_national_capitals_by_population"
tables = pd.read_html(base_site)
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)>
Why is this error message popping up? Also, there is more to the error message.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试以下操作:
Try this: