We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

Downloading all image files of determinate page

cels9
cels9 asked
on
157 Views
Last Modified: 2012-06-08
A found many GREAT icon sites, so... i enter in an page, and in this has many icons(pngs, jpgs, gifs)... how can i download all image of the page puting the images in a folder called the name of the page, for example? many thanks.
Comment
Watch Question

rj2

Commented:
On the icon site, are the images directly on the page or is it a thumbnail you must click on to download the icon?
Do you got a link to the icon site?
Dave CrossPerl programmer, author and trainer
CERTIFIED EXPERT

Commented:
You probably need LWP::Simple and HTML::LinkExtor.

Dave...
You can do it by using any tool which will store copies of a webpage offline.
There are plenty around for both Windows and Linux.

In perl LWP::Simple (or LWP::UserAgent) and HTML::LinkExtor will work but theres also WWW:Robot which will crawl the site for images not just getting images off a single page. You can then check if they are a icon by passing them through a image manipulation module like GD to find out the image's size and make sure its icon sized.

Author

Commented:
for example:
the page http://jimmac.musichall.cz/i.php3?ikony=5 haz many icons... how can i download all images of this page w/ perl script?
exe: perl image.pl http://jimmac.musichall.cz/i.php3?ikony=5 "the dir of images will stay"
its possible? tnks
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
works perfectly! tnx ozo!!! how i put the folder where the imgs will stay? is savinf in perl/bin directory .
by the way... tnks ozo!

Author

Commented:
i know nothing about perl... o use it cause its simple... i use only for personal use.
ozo, what u do in your life? only requesting the answers in the forum? are u payed for this? :P
ozo
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015

Commented:
my $rc = getstore(${$attr{src}},"folder/$name");

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.