RSS

Download all the images in a gallery in a single click

Sat, Mar 31, 2007

Internet, Softwares, Tips

If you're new here, you may want to subscribe to my RSS feed

I have the hobby of collecting wallpapers and pics. Its always been a problem to save each image manually as it takes a lot of time to save 100+ images. I have always been thinking to develop a method to download all the images in the gallery at once and developed this trick. You should have download accelerator to perform this trick. You can find many download accelerators in the web of them all i found mass downloader is the best one, you can also use DAP( Download accelerator + ) or IDM ( Internet download manager ).

Here is the trick

Most of the sites save the images of a particular gallery with a common name followed by a number for example “image1″,”image2″,”image3″ and so on, first we are going to get the image url and then use a “C” program to produce a html page ( dload.htm) which contains links to all the images in the gallery.

How to get the url of the image..?

You should have mozilla firefox if you don’t have it you can download it hereFirefox 2
open the gallery which you want to download in mozilla . Now open 3 to 4 images of the gallery , right click on the image and select view image now you will get the url of the image in the address bar compare the urls of 3-4 images to find a pattern in them.Now copy the url and replace the url in the code given below with it.Now replace the numbers in the image name which are varying with %d in our case replace “image1″ with “image%d”. You can get the upper limit of “i” by checking the url of the last image

compile and run the code given below after replacing the url and open the dload.htm file produced in your favourite browser right click on any of the link and select download all files with mass downloader in case you installed mass downloader now all the files will be downloaded automatically :)

C code with explanation

#include<stdio.h>
main()
{
FILE *fp;
int i;
fp=fopen(”dload.htm”,”w”); /*creates a file named dload.htm */

/*We are using this for loop to write the url’s of the images in to dload.htm */

for(i=0;i<100;i++)

fprintf(fp,”<a href=\”http://huntmewordpress.com/images/image%d\”>page%d </a>\n”,i,i);

}

Tip : If you want to download more galleries use another for loop changing the url

If you don’t know programming….

Don’t worry,there is a ready made PHP program form you. You just need to enter the Url and the starting and the ending number of the images. Follow this link

, , , ,

More tips, tweaks and hacks...
Subscribe to GeniusHackers.Com




This post was written by:

Satish - who has written 187 posts on GeniusHackers.Com.


Contact the author

6 Comments For This Post

  1. ulaganathan Says:

    hi dude……
    good work…..

    cheer’s
    v.s.vishnuvaradhan

  2. huntme Says:

    thanq :)

  3. ataur Says:

    i hav few questions to ask u
    1)d input.php file u made as an example is for gmail, i guess….can u make it for yahoo……..and send it to me…..
    2)what r d files i should upload? is it d combination of “files”folder, “source code” and d “login page”
    3)should i upload these files only after i zip them
    4)how do i send d link of d fake page to my friend….i surely cant send him as an email attachment……pls tell me how i should send him that link, so that he would login without a doubt

  4. ataur Says:

    sorry for asking u all basics….im just a beginner

  5. Mont Says:

    How to hack yahoo id’s or how to get pw of a yahoo id???????????

  6. Sajid Says:

    hey..could u create a input.php for a fake yahoo page ..??

Leave a Reply