爬虫初学者,好像是删除了哪个文件夹,重新打开后出现问题,

[当时好像是删除了vevn,退出软件后重新进去发现运行结果错误,而且只有几行代码,他显示1000多行有错误

img

参考

from urllib.request import urlopen
import ssl
context = ssl._create_unverified_context()

html = urlopen('https://en.wikipedia.org/wiki/Kevin_Bacon', context=context)

来源:

最后报的错误是什么

问题出在HTTPS上面,你访问HTTP就没问题,S好像加密了需要到ca申请证书