The webpage contains many links, but I would like to write a script that finds a specific link within the html and stores it in a variable which can be outputted later.
The website contains a whole mess of links to files with the div id of 'old'.
The line I want to copy the url from is in the div id 'latest'.
For example, if the script falls upon this line in its html:
<div id='latest'>Latest Update: <a href='ftp://example.com/ExampleFile.zip'>ExampleFile.zip</a>I would like to the script to copy
ftp://example.com/ExampleFile.zipto a variable, then copy
ExampleFile.zipto a second variable and stop that part of the script to continue with the rest of the program.