Dependent ranges in url macros

07/13/2011 03:02 pm

Want to access a site where the arguments is something like this:

Depending on num1 there is
&num2={:1..5} to {:1..25}

Depending on the combination num1 and num2 there is
&num3={:1..20) to {:1..400}

Believe I could manage the first two through a {:file} macro, but range of num3 is dependent on the first two.

Of course I could loop for all possible numbers. But 95% non-existing files would surely annoy the managers of the website and get me blocked.

Any ideas?

Oleg Chernavin
07/13/2011 03:09 pm
Do you have any logic behind these numbers, like calculate something?

Otherwise I doubt Offline Explorer can easily make a correct guess on which numbers to use.

Best regards,
Oleg Chernavin
MP Staff
07/14/2011 05:30 am

No, they are geographical codes, &num3 refer to villages (20-400) within districts.

Using a file with codes for the larger units will work. But how to enter the max value for for the last range,
which is dependent on the district it is within.

I suppose there is no fields within the files? Eg.
&num1=5&num2=18 | 33

It was a long shot ...

Oleg Chernavin
07/14/2011 05:47 am
No, there are no such fields. But anyway, you can write the URL generator using Excel, for example, save the results to text file and feed it to Offline Explorer. So far this is the only thing I can suggest.

07/14/2011 06:12 am
OK. Thanks!
Oleg Chernavin
07/14/2011 11:54 am
You are welcome!