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.
For example...
I start at http://www.acme.com/folder1/page.htm
I start the download and I end up with the following:
http://www.acme.com/folder1/page.htm
http://www.acme.com/folder2/page.htm
http://www.acme.com/abc/page.htm
In the end I would like to have this:
<path>///www.acme.com/abc/folder1/page.htm
<path>///www.acme.com/abc/folder2/page.htm
<path>///www.acme.com/abc/page.htm
and the next download would be like this:
<path>///www.acme.com/def/folder1/page.htm
<path>///www.acme.com/def/folder2/page.htm
<path>///www.acme.com/def/page.htm
As you can see I do not know the folder name abc until I download abc/page.htm. Is this request possible?
Best regards,
Oleg Chernavin
MP Staff