title: How to suppress warnings about lack of cert verification in a requests HTTPS call?
body: <p>I would like to disable the warning about a lack of certificate verification in a HTTPS call using <code>requests</code>.</p>
  
  <p>The question has been asked in the past, leading to answers about <a href="https://stackoverflow.com/a/32282390/903011">disabling a relevant request logging</a> or the <a href="https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings" rel="noreferrer"><code>urllib3</code> SSL warning</a>.</p>
  
  <p>This used to work in the past (I remember successfully silencing the warnings) but seems not to work anymore?</p>
  
  <p>I put together the two solutions which worked so far:</p>
  
  <pre><code>Python 3.5.3 (default, Jan 19 2017, 14:11:04)
  [GCC 6.3.0 20170124] on linux
  &gt;&gt;&gt; import requests
  &gt;&gt;&gt; import requests.packages
  &gt;&gt;&gt; import urllib3
  &gt;&gt;&gt; urllib3.disable_warnings()
  &gt;&gt;&gt; requests.packages.urllib3.disable_warnings()
  &gt;&gt;&gt; requests.get('https://www.google.com', verify=False)
  /usr/lib/python3/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
    InsecureRequestWarning)
  &lt;Response [200]&gt;
  </code></pre>
  
  <p><strong>Is there another (current) solution to silence these warnings?</strong></p>