Hi there!
The easiest way to do complete this is to use power automate desktop. If you are not familiar with it, it's a desktop application that runs in the browser and performs the actual clicks; in your case, to click on a link or file and download it.
From there you could save the file directly into the SP site of your choice.
It's fairly easy to use; for general testing, just turn on the recorder and perform the steps to download a file.
------------------------------------------------
⭐ If this was helpful, please like and check the box below "Does this answer your question" to help others find this too!
Always glad to help! 💯💯💯💯💯
Tom
Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn