Expand my Community achievements bar.

SOLVED

Static HTMl download

Avatar

Community Advisor

Hi All,

I have Usecase where when author activates a particular page it should download as static HTML in local drive.

how can i achieve this ?

Thanks

Mani Kumar K

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Administrator

Hi

There are many tools to achieve this,

a. Link:- http://stackoverflow.com/questions/6348289/download-a-working-local-copy-of-a-webpage

//wget is capable of doing what you are asking. Just try the following:

wget -p -k http://www.example.com/

 

b. Link:- http://stackoverflow.com/questions/26454916/download-the-entire-webpage (JAVA)

//Yes you can trick a a webpage to download on your locals by Java code. You can not Download HTMl Static content by Java Script. JavaScript is not providing you to create a files as Java Provides.

 

c. Link:- http://www.httrack.com/

//In Windows, you can look at HTTrack. It's very configurable allowing you to set the speed of the downloads. But you can just point it at a website and run it too with no configuration at all.

In my experience it's been a really good tool and works well. Some of the things I like about HTTrack are:

    Open Source license
    Resumes stopped downloads
    Can update an existing archive
    You can configure it to be non-aggressive when it downloads so it doesn't waste your bandwidth and the bandwidth of the site.

 

There are many other options available, i would recommend you to Google it as per your requirement.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Correct answer by
Community Advisor

Hi All,

Got the solution

below the is the blog link

http://www.wemblog.com/2012/02/how-to-use-static-agent-in-cq-wem.html