2024-04-19 13:37:41 发布
网友
如何在python中读取URL并检查HTTPS
import urllib2 response = urllib2.urlopen('https://www.google.com/') html = response.read()
请尝试以下操作:
import urllib.request response = urllib.request.urlopen('https://www.google.com/') html = response.read() print(html)
即使给出错误,请尝试安装以下代码并重试上述代码:
pip install urllib3
请尝试以下操作:
即使给出错误,请尝试安装以下代码并重试上述代码:
相关问题 更多 >
编程相关推荐