Skip to content

Instantly share code, notes, and snippets.

except ImportError:
sys.stderr.write("\nError: please install python requests module first: http://www.python-requests.org/\n")
from requests.auth import HTTPBasicAuth
from string import Template
import getpass
import json
currenttime = time.asctime(time.localtime())
urllib3.disable_warnings()