I've generated the access token manually over the Dropbox App Console on their webpage. Developer Apps
With that token I was able to download the file
mydropbox_token = 'sl.....' dbx = dropbox.Dropbox(mydropbox_token,app_key='vixxx',app_secret='qrxxx') with open("rc.xlsx", "wb") as f: shared_link = "https://www.dropbox.com/s/e9xxxxxxx.xlsx?dl=0" metadata, res = dbx.sharing_get_shared_link_file(url=shared_link,link_password ='xxx1') f.write(res.content) The point here is I just want to be able to download this public shared , password protected file and to do so I must have dropbox access key, which I don't know why.
My question is, what is fastest way to automatically generate, refresh tokens through code instead of manually copy/pasting them every few days.