Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Download a HTML page with images?
Hi,

I am wanting to download or mirror a series of individual HTML pages,
not a whole site. How do you do this with perl? I have looked at LWP
mirror and w3mir neither of which seem to do this. mirror does not
download assocated images, w3mir insists on placing everything at the
root and does not have an option to download a single page with images,
style sheets etc.


--
Fergus McMenemie               Email:fergus@twig.demon.co.uk.
Techmore Ltd                        Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer

Report this thread to moderator Post Follow-up to this message
Old Post
Fergus McMenemie
04-25-05 01:58 PM


Re: Download a HTML page with images?
Fergus McMenemie <fergus@twig.demon.co.uk> wrote:

> I am wanting to download or mirror a series of individual HTML
> pages, not a whole site. How do you do this with perl? I have
> looked at LWP mirror and w3mir neither of which seem to do this.
> mirror does not download assocated images, w3mir insists on
> placing everything at the root and does not have an option to
> download a single page with images, style sheets etc.

Instead of trying to reimplement this in Perl, why not use the GNU wget
program?  'wget -p http://example.dns/page.html' should do it.

(The -p option "causes Wget to download all the files that are
necessary to properly display a given HTML page.  This includes such
things as inlined images, sounds, and referenced stylesheets.")

Report this thread to moderator Post Follow-up to this message
Old Post
David K. Wall
04-25-05 08:58 PM


Re: Download a HTML page with images?
David K. Wall <darkon.tdo@gmail.com> wrote:

> Fergus McMenemie <fergus@twig.demon.co.uk> wrote:
> 
>
> Instead of trying to reimplement this in Perl, why not use the GNU wget
> program?  'wget -p http://example.dns/page.html' should do it.
>
> (The -p option "causes Wget to download all the files that are
> necessary to properly display a given HTML page.  This includes such
> things as inlined images, sounds, and referenced stylesheets.")


Thanks very much; available for UNIX and Windows as well, that will
do nicely! I guess I am so used to being able to do everything in Perl
that I did not properly consider the alternatives :-)

--
Fergus McMenemie               Email:fergus@twig.demon.co.uk.
Techmore Ltd                        Phone:(UK) 07721 376021

Unix/Mac/Intranets             Analyst Programmer

Report this thread to moderator Post Follow-up to this message
Old Post
Fergus McMenemie
04-26-05 08:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Miscellaneous archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:22 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.