Python3 Base64 codieren grundlegende Authentifizierung
userpass = username + ':' + password
encoded_u = base64.b64encode(userpass.encode()).decode()
headers = {"Authorization" : "Basic %s" % encoded_u}
riffrazor