Wildcards

Author Message
Amanco 02/13/2007 09:40 pm
Hi Oleg,

How can i use wild cards in downloading files with different numbers in the URL i.e. instead of using

http://www.Site.com/content/figure.cfm?mediaISBN=0729537625&ImageSeqNo=50712550&screenWidth=1024&screenHeight=768

and this #50712550, is changing. so how can i use {:*} macro, instead of {:5..12}, because i can not figure out the range of numbers.

thank you
Oleg Chernavin 02/14/2007 05:31 am
OK. So, you want to get all numbers in such URL. But how Offline Explorer would guess which exact numbers to load? You will have to help here. For example, if you want to get numbers from 1000000 to 9999999, use macro {:1000000..9999999}

Best regards,
Oleg Chernavin
MP Staff
Amanco 02/15/2007 11:31 am
Thank you Oleg, Another 2 questions about wild cards please,

(1) Can Offline explorer download this URL:

http://www.site.com/content/content.cfm?xrefID=P{:0001..0420}#P{:0001..0420}

where the 1st {:0001..0420} = the 2nd {:0001..0420}

i.e.

http://www.site.com/content/content.cfm?xrefID=P{:0001}#P{:0001}
http://www.site.com/content/content.cfm?xrefID=P{:0014}#P{:0014}
http://www.site.com/content/content.cfm?xrefID=P{:0135}#P{:0135}
http://www.site.com/content/content.cfm?xrefID=P{:0240}#P{:0240}
http://www.site.com/content/content.cfm?xrefID=P{:0420}#P{:0420}


(2) Can wild cards be used in the Filter-Files-Included file names As a wild card i.e.
content.cfm?xrefID=P{:0001..0420}#P{:0001..0420}

Thank you.
Oleg Chernavin 02/15/2007 11:43 am
1. This is easy:


http://www.site.com/content/content.cfm?xrefID=P{:0001..0420#1}#P{:#1}

2. You will have to use something another, like:

content.cfm?xrefID=P0[0-9][0-9][0-9]#P0[0-9][0-9][0-9]

Oleg.
Amanco 02/15/2007 01:49 pm
Thanks Oleg

> 1. This is easy:
>
>
> http://www.site.com/content/content.cfm?xrefID=P{:0001..0420#1}#P{:#1}
>

This only downloads URLs like:

http://www.site.com/content/content.cfm?xrefID=P{:0014}
and not
http://www.site.com/content/content.cfm?xrefID=P{:0014}#P{:0014}
Amanco 02/15/2007 01:56 pm
sorry i meant to put the URLs without the wildcard quotations

http://www.site.com/content/content.cfm?xrefID=P0001#P0001
http://www.site.com/content/content.cfm?xrefID=P0014#P0014
http://www.site.com/content/content.cfm?xrefID=P0135#P0135
http://www.site.com/content/content.cfm?xrefID=P0240#P0240
http://www.site.com/content/content.cfm?xrefID=P0420#P0420

> Thanks Oleg
>
> > 1. This is easy:
> >
> >
> > http://www.site.com/content/content.cfm?xrefID=P{:0001..0420#1}#P{:#1}

This only downloads URLs like:

http://www.site.com/content/content.cfm?xrefID=P0014
and not
http://www.site.com/content/content.cfm?xrefID=P0014#P0014
Oleg Chernavin 02/15/2007 02:09 pm
Yes, this is correct. Everything after # symbol is not a part of the URL. It is a position inside the page. So, it should be ignored.

Oleg.
Amanco 02/15/2007 10:19 pm
> Yes, this is correct. Everything after # symbol is not a part of the URL. It is a position inside the page. So, it should be ignored.
>
> Oleg.

Great, thank you :)
Oleg Chernavin 02/16/2007 05:28 am
You are welcome!

Oleg.