摘要: unittest requests 在添加了以下代码依然出现以下错误: 1 import urllib3 2 urllib3.disable_warnings() InsecureRequestWarning: Unverified HTTPS request is being made. Addi 阅读全文
posted @ 2021-05-14 22:23 Aliwall 阅读(292) 评论(0) 推荐(0) 编辑
摘要: unittest 使用 requests 发请求 遇到如下错误: ResourceWarning: Enable tracemalloc to get the object allocation traceback代码中添加以下红色代码即可. 1 import warnings 2 3 def se 阅读全文
posted @ 2021-05-14 22:14 Aliwall 阅读(2120) 评论(0) 推荐(0) 编辑
摘要: # 自学, 不足之处还请大佬不吝指导,在此谢过. from requests_html import HTMLSession from lxml import etree import re import urllib3 urllib3.disable_warnings() url = "https 阅读全文
posted @ 2021-05-14 15:48 Aliwall 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 使用 python requests 遇到以下错误: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certif 阅读全文
posted @ 2021-05-14 12:05 Aliwall 阅读(920) 评论(0) 推荐(0) 编辑