Saving web pages and associated images, css files, etc

Posted on 2005-05-10
Last Modified: 2011-08-18
I would like to archive off snapshots of specific pages and store them on a local fileserver and serve them up locally.  What is the easiest method to achieve this?  I know it's a broad question, but I need a pointer in the right direction.

Question by:lomidien
    LVL 14

    Expert Comment

    The easiest way would be start command line tool like wget, and this can be achieved by using java.lang.ProcessBuilder
    LVL 15

    Accepted Solution

    if you are looking for a utility you can use wget .
    If you want to use java then httpunit is a good option see:
    LVL 2

    Expert Comment

    if u really need to do it by your own code, you need to parse the initial( or index) html file, parse it, get all referenced files(javascript, image, css files) and download them separately. Really tedious(is this spell right?) though.
    LVL 15

    Expert Comment

    >> if u really need to do it by your own code, you need to parse the initial( or index) html file,
    This is why I suggested httpunit which does it for you :-)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now