Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Download web page including css files, images, etc.

by skx (Parson)
on Jan 25, 2007 at 14:59 UTC ( #596504=note: print w/replies, xml ) Need Help??


in reply to Re: Download web page including css files, images, etc.
in thread Download web page including css files, images, etc.

True, but I think it is the most "standard" tool for the job - short of doing the parsing and rewriting myself.

Steve
--
  • Comment on Re^2: Download web page including css files, images, etc.

Replies are listed 'Best First'.
Re^3: Download web page including css files, images, etc.
by Anonymous Monk on Jan 25, 2007 at 15:26 UTC
    True, I just thought I'd point this out to the original poster: wget won't do the job all the time. If he needs something that works every time, he'd need to use wget and do some of the work manually in case BASE element is involved or CSS is being used for images (maybe there are other problems there I haven't thought of?) - or write it from scratch ...

    The trick would be going through the HTML and CSS specs and find every different way objects can be referenced/included/linked to etc. I'm sure there's plenty!

    Johannes
      Oops, you are the original poster :-P

      With so many edge cases I've pretty much abandoned the use for a wget-only solution.

      I've got a mimimal tool working now using HTML::Parser, but I haven't dug deep in examining the CSS files yet. I will have to work on that later.

      Steve
      --
        Can you keep me updated with what you find? e.g. if you find a tool that can do this after all. I happen to need something like this a few months down the road... johannes.egger@darkrealms.org Johannes

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596504]
help
Chatterbox?
and the universe expands...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-07-19 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (421 votes). Check out past polls.

    Notices?