I'm doing some webscraping with Selenium in Python and I have a link on a page that points to, e.g.
<a href="/zip.php?zipid=103">Click Here To Download</a>
Now, of course, if I click on it, my browser will immediately start downloading the file, e.g. myinterestingarchive.zip
What I'm wondering is if I can inject some JavaScript, say, that will tell me the filename myinterestingarchive.zip
WITHOUT my clicking the link, because I'd like to record the filename in my program's log, and it's nowhere in the source or OuterHTML, just that php url.