I have a question about variables. I would like to declare a variable to control where to put downloaded files. My problem is where I want to put the files is not known until a few pages into the download. I would like to set the variable based on the folder name defined in a later webpage in the download. When the downloading is done and while I am exporting, the parsing routine would use variable I declared and set during the download to set the root folder so everything is together in one folder instead of being on multiple folders. This variable changes on each download and is never the same.
I start at http://www.acme.com/folder1/page.htm
I start the download and I end up with the following:
In the end I would like to have this:
and the next download would be like this:
As you can see I do not know the folder name abc until I download abc/page.htm. Is this request possible?