Skip to content

Instantly share code, notes, and snippets.

@h0tw1r3
Created September 6, 2024 00:13
Show Gist options
  • Select an option

  • Save h0tw1r3/0537845ce27d8bcce936cf5be201ffb6 to your computer and use it in GitHub Desktop.

Select an option

Save h0tw1r3/0537845ce27d8bcce936cf5be201ffb6 to your computer and use it in GitHub Desktop.

Revisions

  1. h0tw1r3 created this gist Sep 6, 2024.
    8 changes: 8 additions & 0 deletions disable_verification.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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