1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatically download images?

Discussion in 'General Programming Chat' started by happyhatter, Feb 18, 2010.

  1. happyhatter

    happyhatter Registered Member

    Joined:
    Jan 26, 2009
    Messages:
    61
    Likes Received:
    3
    Is there a program that will help me automatically download images? I have saved some HTML pages to my hard drive that have links to images that I would also like to download to my hard drive.
     
  2. happyhatter

    happyhatter Registered Member

    Joined:
    Jan 26, 2009
    Messages:
    61
    Likes Received:
    3
    Looks like iMacros will do the job for me.
     
  3. alexaassassin

    alexaassassin Registered Member

    Joined:
    Feb 9, 2009
    Messages:
    97
    Likes Received:
    255
    Surf to the page online.
    Click FILE at the top if Firefox or Interner Explorer
    Click Save Page As - Complete Webpage

    The images will now be in a folder on your computer.
     
    • Thanks Thanks x 1
  4. mline

    mline Newbie

    Joined:
    Jan 30, 2010
    Messages:
    49
    Likes Received:
    18
    And this was a programming question how, exactly?
     
  5. internalsoul

    internalsoul Jr. VIP Jr. VIP

    Joined:
    Apr 22, 2009
    Messages:
    1,004
    Likes Received:
    547
    Occupation:
    IM
    Location:
    ON Earth
    Give bulk image downloader a try. Thats the best to download images from any site and is a very good software. you can add multiple links of images in download queque and the software does the rest by it self.
     
  6. happyhatter

    happyhatter Registered Member

    Joined:
    Jan 26, 2009
    Messages:
    61
    Likes Received:
    3
    iMacros seems to work just fine. Here's the macro in case someone is interested:

    Code:
    TAB T=1     
    SET !ERRORIGNORE YES
    SET !VAR2 0
    ADD !VAR2 {{!LOOP}}
    'TAB CLOSEALLOTHERS  
    'URL GOTO=http://www.iopus.com/imacros/demo/v5/images/   
    URL GOTO=file:///C:\myTest{{!VAR2}}.htm
    'You can *start* the loop at another value with SET !LOOP. The default start value is 1. 
    'Since the SET !LOOP command sets a START value, it works only at the first loop.
    'SET !LOOP 2
    'TAG POS={{!loop}} TYPE=IMG ATTR=SRC:http://*.jpg  
    
    '
    'You can use the FOLDER=* part of the ONDOWNLOAD command to define another download directory
    'And you can overwrite the automatic file name generation by replacing
    'FILE=+_{{!NOW:yyyy******d_hhnnss}}  
    'with 
    'FILE=yourname.ext 
    '
    '
    ONDOWNLOAD FOLDER=* FILE=*
    '
    'Download the picture
    TAG POS=1 TYPE=IMG ATTR=SRC:http://*.jpg CONTENT=EVENT:SAVEITEM
    'TAG POS=2 TYPE=IMG ATTR=SRC:http://*.jpg CONTENT=EVENT:SAVEITEM
    '
    'You can also use the EVENT:SAVEPICTUREAS command instead
    'TAG POS=1 TYPE=IMG ATTR=HREF:http://*.jpg CONTENT=EVENT:SAVEPICTUREAS
    '
    'Or you can take a snapshot of the complete web page
    'SAVEAS TYPE=BMP FOLDER=* FILE=MySnapshot_{{!NOW:yyyy******d_hhnnss}}.bmp 
    '
    'Give the user time to press PAUSE 
    'WAIT SECONDS=1
    '
    'Go back to start page
    'Use !urlstart if you removed the URL GOTO= command at the top of the macro
    'URL GOTO={{!urlstart}}