urllib - sjherrick/code-base GitHub Wiki

Urllib/Urllib3

Hide Insecure Request Warning

import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

Encode strings as URL

import urllib.parse

output = urllib.parse.quote('/test\":test', safe='')  # %2Ftest%22%3Atest