Does this photo app exist?

Discussion in 'Mac Apps and Mac App Store' started by one1, Dec 9, 2009.

  1. one1 macrumors 65816

    Joined:
    Jun 17, 2007
    Location:
    Chattanooga, TN
    #1
    There is a website that has a couple thousand cool old car photos I want to save and keep as rotating wallpaper. The url is conveniently labeled 1 through 2345. So all I need is to command an app or script to save the pictures from url.test/1.jpg through url.test2345.jpg.

    Does such a harvester exist? Could I make an rss aggregator do this somehow?

    Thanks :)
     
  2. zachsilvey macrumors 6502

    Joined:
    Feb 5, 2008
    Location:
    Battle Ground
    #2
    I attempted to write a shell script for you
    Code:
    #!/bin/bash
    #change the url to the correct site and directory.
    #make sure the file has execute permissions, can be changed in "get info"
    #this will take as long as it needs to download all the files
    #the files will be located in your home directory
    #i am not responsible for any dammage this may cause
    COUNT=1
    while [ $COUNT -lt 2346 ]; do
            curl -O http://www.putsitehere.com/$COUNT.jpg
            let COUNT=COUNT+1
    done
    
    You would save this as whatever.sh and execute it in the terminal. Someone else should look it over first as I don't know if this is totally correct.
     
  3. DewGuy1999 macrumors 68040

    DewGuy1999

    Joined:
    Jan 25, 2009
    #3
    This app should be able to download all the images from a site:
    SiteSucker

    Or this Firefox plug-in might do it:
    DownThemAll
     
  4. one1 thread starter macrumors 65816

    Joined:
    Jun 17, 2007
    Location:
    Chattanooga, TN
    #4
    Thanks Dew, I can't get those to work with a sequence of files.

    Thank you.

    That appears to be this: http://linux.byexamples.com/archive...es-from-a-site-using-for-loop-like-c-in-bash/

    I just need some guidance on using it.
     
  5. zachsilvey macrumors 6502

    Joined:
    Feb 5, 2008
    Location:
    Battle Ground
    #5
    1) Open terminal

    2)type the command "nano downloadImages.sh" without the quotes.

    3)Paste in the script

    4)Change the url to the correct one, for example if the images are at example.com/images/1.jpg you want it to be example.com/images/$COUNT.jpg

    5)Change 2346 to however many images there are +1

    6)press ctrl+o then enter to save the file

    7)press ctrl+x then enter to exit nano

    8)in terminal type "chmod +x downloadImages.sh" without quotes

    9)in terminal type "./downloadImages.sh" without quotes

    You might want to try a test run of just 50 image to see how long it will take. All the images will be stored in your home directory.
     

Share This Page