Simple script to automatically update a cloudflare worker with a new download authorization code
crontab -e
*Enter:
0 0 */3 * * /bin/python /path/to/run.py
*Save
- Copy and rename the config_example.json to config.json
- Fill in the credentials
To modify the response from the worker you can create a file "response_additions.js" and write code to be executed right before returning the response (where the '//<<ResponseAdditions>>' lives in worker.js).