I wish to download the files associated with a set of links in a html document.
A link might appear like this:
<a href="d?kjdfer87">
But when I click on it in my browser, I get the following file downloaded:
file2.txt
The following will download the file via python:
opener = urllib.request.build_opener()
r = opener.open("unknown.txt")
r.read()
but how do I establish that the file was actually called file2.txt?