Hey im new here and im trying to export\clone my branches to my local pc using python, how can i do it? this is how i connect to bitbucket for now
url = 'https://bitbucket.org/api/2.0/user/'
headers = {'Content-Type': 'application/json'}
r = requests.get(url, auth=('Username', 'Apppaswoord'), headers=headers)
print(r.status_code)
print(r.text)
#print(r.content)