Sometimes, on some sites, we are faced with buttons to download a file, where the address of the download file is the same as the address of the page we are on, and if we try to download using the “save link as” method, the HTML page will be downloaded and not the file itself. You just need to click on the button to download the file.
Now suppose we need to download a large number of these files, and the only way is to write a code in a programming language. But as mentioned, we don’t have access to the file link to give it to the code or the code can extract it from the page.
What is the solution for this problem?