New forum Wow...Is it possible to write a program to do this?

Sharky Forums


Results 1 to 12 of 12

Thread: New forum Wow...Is it possible to write a program to do this?

  1. #1
    Tiger Shark
    Join Date
    Oct 2000
    Posts
    858

    Post New forum Wow...Is it possible to write a program to do this?

    Say my cousins have scanned in all their pictures from Hawaii and have them in a web gallery something like this |www.cousins.net/hawaiipics/hawaii01.jpg| and theres a whole bunch like a hundred and they are in the same gallery and numbered consectetivly (sp) is there a program or something I could create that would start at that first hawaii01.jpg and work its way up to picture 100 or so??? downloading them and saving them to my hard drive-- without me having to manually load and save each pic?

    [This message has been edited by Chillingworth (edited January 03, 2001).]

  2. #2
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    I'm not exactly sure what you want to do. Are you trying to rename all 100 pics to a special naming convenstion into another directory?
    Example:
    pics are named 0000001.jpg, 00000002.jpg, 00000003.jpg, etc eyc.
    And you want to rename them ALL to hawaii01.jpg, hawaii02.jpg, etc etc?

    I this is the case, than check out: www.irfanview.com
    This AWESOME program is my favorite of all times. It offers alot of batch functionality that does exactly what I specified above. E-mail me if you have any questions on using Irfanview.
    [email protected]

  3. #3
    Tiger Shark
    Join Date
    Oct 2000
    Posts
    858

    Post

    No, what im saying is that my cousins pics are all on that webpage and i want to download them onto my harddrive without actually having to click on each link and then save them onto my hard drive. My cousins change their webpage quite often so if I dont get the hawaiipics theres no guarantee theyll be there next month...they only have 20 megs of space or something. I want a program that loads and saves each pic without me having to manually click and save. the names of the files would remain the same.

  4. #4
    Katana Wielding Moderator Klashe's Avatar
    Join Date
    Sep 2000
    Location
    IL, USA
    Posts
    3,306

    Post

    Originally posted by Chillingworth:
    No, what im saying is that my cousins pics are all on that webpage and i want to download them onto my harddrive without actually having to click on each link and then save them onto my hard drive. My cousins change their webpage quite often so if I dont get the hawaiipics theres no guarantee theyll be there next month...they only have 20 megs of space or something. I want a program that loads and saves each pic without me having to manually click and save. the names of the files would remain the same.

    Actually, you don't need a program to do that. If you can ftp into their webpage thru IE (type "ftp://www.cousins.net/hawaiipics/" is the address bar, it will probably prompt you for a password)
    you can just right click the folder with all the pictures in it and then copy it onto your desktop.


    ------------------
    Happiness is...
    • P3-800 o/c to 896
    • GeForce 2 MX
    • SB mp3 5.1
    • Klipsch ProMedias 2.400
    • 30 gigger
    • Viewsonic 19"

  5. #5
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    Ahhhh, yes. Just ask your cousin for FTP access. Much easier.

    Or...if you actually see them load on your screen, than your webbrowser has them actually saved somewhere on your harddrive in cache. Search around for them, they're all there unless you have some really low chache settings.

  6. #6
    Katana Wielding Moderator Klashe's Avatar
    Join Date
    Sep 2000
    Location
    IL, USA
    Posts
    3,306

    Post

    Originally posted by Grizzly:

    Or...if you actually see them load on your screen, than your webbrowser has them actually saved somewhere on your harddrive in cache. Search around for them, they're all there unless you have some really low chache settings.
    That's even better than FTPing.
    The cache ( in case you didn't know) holds all the graphics from recently visited sites, so if you go there again, it can just pull them up from local memory instead of having to go out to the web server.

    Under your netscape folder goto /users/<username>/cache/ and it should be somewhere in there. Or you can just go to Start->Find->cousins*.jpg

    Sometimes I find myself writing new programs for stuff that can be done with current programs!

    ------------------
    Happiness is...
    • P3-800 o/c to 896
    • GeForce 2 MX
    • SB mp3 5.1
    • Klipsch ProMedias 2.400
    • 30 gigger
    • Viewsonic 19"

  7. #7
    Tiger Shark
    Join Date
    Oct 2000
    Posts
    858

    Lightbulb

    Hmmmmm, that does start me to thinkin...i do know everything goes to that Temporary Internet Folder...but theres a whole buncha other stuff in there too.....like the ad banners, backgrounds, other objects etc that my cousin has. How would I pull out only the hawaii jpg files. I could use the find file option---it might save some time....ill have to do some experimenting!

  8. #8
    Expensive Sushi
    Join Date
    Jan 2001
    Location
    St. Louis, MO, USA
    Posts
    13

    Post

    I'll get back to you later with how to do this. All you should need is Internet Explorer 5 or greater and the Windows Scripting Host enabled (don't worry about that, it probably is...).

    I will put together a VBS script that downloads all images on a given page (or links to images for thumbnails). It may take an extra day, I'm not sure how my evening looks, and I'm building my 1ghz Athlon system tomorrow night over a 6 pack of beer...

    Peter.

    ------------------
    We got it at the Wazmo...
    www.thewazmo.com
    We got it at the Wazmo...
    www.thewazmo.com

  9. #9
    Expensive Sushi
    Join Date
    Jan 2001
    Location
    St. Louis, MO, USA
    Posts
    13

    Post

    Now then, I have a solution, but it requires some alterations. This is a sample program I used in a VB class I teach at a local university (so I really didn't have to spend any time on it at all...).

    The program requires VB6 and at least IE5 (it's just a project file and one form file). It reads in a given URL, listing the images. You can then select the images and save them. It shows how to grab the HTML from a web page, parse it, and how to programatically save binary files such as images. This is the full source, but I haven't got time to fit it to your exact purpose.

    I put it out on my webiste (I write everything out there...), so go to: http://www.thewazmo.com
    then choose the Software link at the top. The project is a 2k ZIP file at the bottom of the list. On a similar note, Auction Update Pro (available from the software page) is a VB app that I wrote a couple of years ago that fully automates most eBay actions (it won't snipe, but it will track auctions and you can bid through it).

    Peter



    ------------------
    We got it at the Wazmo...
    www.thewazmo.com
    We got it at the Wazmo...
    www.thewazmo.com

  10. #10
    Ex-*** kid A's Avatar
    Join Date
    Sep 2000
    Location
    Norway
    Posts
    5,322

    Post

    Originally posted by Grizzly:
    If this is the case, than check out: www.irfanview.com
    This AWESOME program is my favorite of all times. It offers alot of batch functionality that does exactly what I specified above. E-mail me if you have any questions on using Irfanview.
    [email protected]

    I agreed to that - IrfanView is really a great image converter/tool. I love that program and have been using it for a couple of years now


    ------------------
    Now listening to:
    Røyksopp - Apple
    Now listening to various rock and metal
    143rd member to join Sharkyforums.

  11. #11
    Ursus Arctos Moderatis Grizzly's Avatar
    Join Date
    Sep 2000
    Location
    Providence, RI USA
    Posts
    3,077

    Post

    Originally posted by kid A:

    I agreed to that - IrfanView is really a great image converter/tool. I love that program and have been using it for a couple of years now


    You bet! If Irfan ever does start charging money for his amazing program, I'll be the first in line to cut him a check. I've used it for 3 years myself, and am amazed at the amount of time he puts into this program, for absolutely nothing in return.

  12. #12
    Ex-*** kid A's Avatar
    Join Date
    Sep 2000
    Location
    Norway
    Posts
    5,322

    Post

    Originally posted by Grizzly:
    You bet! If Irfan ever does start charging money for his amazing program, I'll be the first in line to cut him a check. I've used it for 3 years myself, and am amazed at the amount of time he puts into this program, for absolutely nothing in return.
    He must get money somehow...

    I stumbled across it back in 1997 when I was making my first websites and have stuck with it ever since


    ------------------
    Now listening to:
    Røyksopp - Apple
    Now listening to various rock and metal
    143rd member to join Sharkyforums.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •