python 3.8
I've a Dropbox account which is sharing some folders from another Dropbox user. I can see and download these shared folders manually . But there are thousands of folders.
I've created a Dropbox app so have a Oauth2 api_key and api_secret. Once logged in I'm trying to follow these instructions
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_folders
with my generated api_token
Executing the generated python snippit
headers = "{'Authorization':"Bearer fffooobbbaaarrr", 'Content-Type':"application/json"}
data = {}
url = "https://api.dropboxapi.com/2/sharing/list_folders"
r = requests.post( url, headers=headers, data=json.dumps(data))
dicct = json.loads(r.content)
yields a nested dictionaries of entries, each of which has a "path_lower" attribute. So how do I drill down through these to discover, say, "{'path':"/eric/iphone/Messages"} and then download_zip every subdir under /e/i/M ?
TIA,
Still-Learning Steve