This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
importwarnings
fromelasticsearchimportElasticsearch
fromConfigimportConfig
# 抑制HTTPS相关警告
warnings.filterwarnings('ignore',message='Connecting to .* using TLS with verify_certs=False is insecure')
warnings.filterwarnings('ignore',message='Unverified HTTPS request is being made to host')