Skip to content

Instantly share code, notes, and snippets.

@jeffg-dev
Created August 28, 2018 22:04
Show Gist options
  • Select an option

  • Save jeffg-dev/7d00ecfcc9638dc2998dd93602945ebe to your computer and use it in GitHub Desktop.

Select an option

Save jeffg-dev/7d00ecfcc9638dc2998dd93602945ebe to your computer and use it in GitHub Desktop.
import requests
# BAD IDEA - VERY INSECURE
from urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
r = requests.get(url, verify=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment