from urllib import parse
params = parse.parse_qs(parse.urlparse(url).query)
print(params['username'])