title: Capture a download link redirected by a page (WGET)
body: <p>Here is my problem.</p>
  
  <p>I am currently working on a script for me that automates the download of some software that I use to "clean" my computer.</p>
  
  <p>I have been able to make downloads with download URLs like this one: "<a href="https://www.driverscloud.com/plugins/DriversCloud_Win.exe" rel="nofollow noreferrer">https://www.driverscloud.com/plugins/DriversCloud_Win.exe</a>" but not with URLs that redirect to a download URL after a short time of waiting like this one: "<a href="https://www.ccleaner.com/fr-fr/ccleaner/download/standard" rel="nofollow noreferrer">https://www.ccleaner.com/fr-fr/ccleaner/download/standard</a>".</p>
  
  <p>I can see that the problem is that I don't give a direct download address to Wget but I would like to be able to do it with the address "<a href="https://www.ccleaner.com/fr-fr/ccleaner/download/standard" rel="nofollow noreferrer">https://www.ccleaner.com/fr-fr/ccleaner/download/standard</a>" because Piriform (the developer of Ccleaner) updates the software quite regularly and the download address changes according to the version number (example: <a href="https://download.ccleaner.com/ccsetup547.exe" rel="nofollow noreferrer">https://download.ccleaner.com/ccsetup547.exe</a> -> <a href="https://download.ccleaner.com/ccsetup548.exe" rel="nofollow noreferrer">https://download.ccleaner.com/ccsetup548.exe</a>).</p>
  
  <p>So how can I ask Wget to take the download link contained in the page and not download the page itself (because I get a file called "standard" like at the end of the URL "<a href="https://www.ccleaner.com/fr-fr/ccleaner/download/standard" rel="nofollow noreferrer">https://www.ccleaner.com/fr-fr/ccleaner/download/standard</a>" ?</p>
  
  <p>I would be delighted if you have a solution for me with Wget or other tools like Curl :) .</p>
  
  <p>Thank you in advance.</p>