import urllib3 urllib3.disable_warnings(urllib3.exceptions.insecurerequestwarning) code example
Example: python request remove warning
#Removes request warnings from console
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)