Another laborious title... Sorry... Anyway, I've got a file called mash.txt with a bunch of URLs like this in it:
http://www...
http://www...
http://www...
.
.
.
So, at this point, I'd like to feed these (URLs) into an array--possibly without having to declare anything along the way--to then recursively suck up the HTML data from each one and append it all to the same file--which I guess will have to be created... Anyhow, thanks in advance.
Actually, to be completely forthcoming, by design I'd like to match the values (value) under the option tags in each HTML tag to this document, so I don't have all that garbage... That is, each of these
http://www...
will produce something like this
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>
DATA!
</TITLE>
</HEAD>
<BODY>
.
.
.
All I want out of all of these is the value name under the option tag that occurs in each HTML in this mash.txt.
The following fetches the HTML content for each URL in mash.txt, retrieves all values across all options, and pushes them into a single array. The resultant array is then passed to input.template, and the processed output is written to output.html:
input.template could look something like: