Author Topic: All about SNATCHCodes  (Read 4277 times)

idolpx

  • Administrator
  • Newbie
  • *****
  • Posts: 16
    • View Profile
All about SNATCHCodes
« on: August 18, 2006, 01:25:59 pm »
Did you know that you can use MEDIASnatcher to sequentially download files from a site?

We use a special URL called a SNATCHCode to do this.

This is what a SNATCHCode looks like.

snatch://www.website.com/folder/gallery/image[000-999].jpg

This tells MEDIASnatcher to download image000.jpg, image001.jpg, image002, etc... from that URL.

If there are multiple galleries you could do this.

snatch://www.website.com/folder/gallery[1-20]/image[000-999].jpg

This tells MEDIASnatcher to start at gallery1 and download image000.jpg, image001.jpg, etc. then it goes to gallery2 and downloads image000.jpg, image0001.jpg, and so on.

You can also specify multiple ranges or a single number like this.

snatch://www.website.com/folder/gallery[1-20,30-40,50]/image[000-100,200,300-320].jpg

You can also tell MEDIASnatcher to pad the inserted number with 0's or not.

Padded
snatch://www.website.com/folder/gallery/image[01-20].jpg
(image01.jpg - image20.jpg)

Not Padded
snatch://www.website.com/folder/gallery/image[1-20].jpg
(image1.jpg - image20.jpg)

You can also specify alpha ranges or single letters like this.
Upper and lower case are different. Some servers are case sensitive.

 snatch://www.website.com/folder/gallery/image[a-m,L-P,x].jpg
(imagea.jpg - imagem.jpg, imageL.jpg - imageP.jpg, and imagex.jpg)

Mix them up
 snatch://www.website.com/folder/gallery[R-S,12-30,x,43,/image[01-20,M-P,x-z,75,84].jpg

Or even use multi character constants

 snatch://www.website.com/folder/[gallery,gallerie,images]/[image,pic][01-20].jpg

MEDIASnatcher will generate every possible combination of REAL URLs and try to download them all.

I hope this explains it well.  If not please ask questions.