Created
September 6, 2024 00:13
-
-
Save h0tw1r3/0537845ce27d8bcce936cf5be201ffb6 to your computer and use it in GitHub Desktop.
python globally disable requests ssl verification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def disable_request_verification(): | |
requests.urllib3.disable_warnings() | |
old_init = requests.Session.__init__ | |
def new_init(self, *k, **kw): | |
old_init(self, *k, **kw) | |
self.verify = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment