Automating Daily Access Token generation

Hello,

I have my own trading strategy in python. The script is programmed to kick-off at a certain time of the , get data, identify buy/sell targets, place the order and then exit.

The problem is that based on my current knowledge Upstox requires a daily manual intervention to generate the access token.

How can I automate the whole process. Any suggestions and help would be greatly appreciated.

Thankd