I need to implement a cron job on my nodejs backend that does the following tasks:
- Go to a specific url
- Click on a button to download a ZIP-File. This download is the response of a form submit (POST).
- Store the file somewhere on the server.
I know how to implement cron jobs. My problem is that download. Unfortunately there is no direct download link... So as far as I understand the only way around this is to "simulate" the click on the form button somehow... Maybe using a headless browser?
Has anyone ever done this before? I'd be glad about some inputs.
Cheers Michael