I have a personal account on dropbox for saving some data automatically through python script, the account working smoothly with the script except one issue, the access token keep changing every 2 days or like that (my script working daily automatically), because of this issue I have to every some time generate new access token and replace it with the one in script still I didn't find any reason for ,
I have the following python script to deal with dropbox :
access_token = 'bMDDDDggkS5jzV1_diCIGK6bZCzUp'
file_from = file_path
file_to = to_path
dbx = dropbox.Dropbox(access_token)
f = open(file_from, 'rb')
dbx.files_upload(f.read(), file_to)
as I said the script working fine, but how could I keep the access token without revoke ?
BTW I know the access token not get expired, why this happen ?
steps I did :
- create an app folder and make limited access for script
- only 1 user access to the dropbox account
- user linked