Python Automation Test-error Summary
1. When running the program, the following error is reported:
HTTPSConnectionPool (host='test.xxxx.com', port=443): Max retries exceeded with url: / openapi/smartStock/000008.SZ.shtml (Caused by SSLError (SSLError (1,'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ ssl.c:600)'),))
Solution: add: verify=False when requests request
two。 Do not display warning information
Import urllib3
# remove the Warning at run time
Urllib3.disable_warnings (urllib3.exceptions.InsecureRequestWarning)