go - 我想通过避免 x509: certificate has expired or is not yet valid 使用 goquery 来访问
问题描述
doc, err := goquery.NewDocument(site_url)
if err != nil {
panic(err)
return
}
运行上面给出的错误
panic: Get site_url: x509: certificate has expired or is not yet valid
如何绕过证书验证并访问任何站点?
在谷歌上搜索后,使用client.Get
and http.Get
,我找到了一种方法 &tls.Config {InsecureSkipVerify: true}
但我找不到方法goquery
去版本go1.13.5
centos7
解决方案
推荐阅读
- mongodb - 在mongo查询中从数组中获取数据
- c++ - 当 A 和 B “相同”时断言 (sizeof(A) == sizeof(B)) 是否安全?
- python - 大熊猫在行之间移动增量
- c# - Typewriter 生成的 TS 文件不是模块
- r - R循环文件导入
- python - Pandas Max or Min Row value in a new column based on value another colum
- php - 获取href值的dom x路径
- java - 无法删除 ParseException
- java - 我可以在 Neo4j 中使用直接 I/O 吗?
- javascript - 使用 javascript 移动元素处理网页滚动的问题