V
V
vreznikov2013-02-28 16:07:22
Browsers
vreznikov, 2013-02-28 16:07:22

How to download a web page using the command line

You need to download a web page using the command line.

I pass the URL to the input, the program executes java scripts and saves the HTML page to a file.

Like wget, but with javascript support.

How can this be done? Maybe some browser can do it?

Platform - preferably UBUNTU

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexey Akulovich, 2013-02-28
@vreznikov

phantomjs works fine with js and can take screenshots of pages. Well, plus nice things, such as running your own js on the page (for example, jquery). I used it myself - I liked it.

V
Valery Selitsky, 2013-02-28
@WaveCut

I advise you to look towards Selenium 2 WebDriver

Y
Yeah, 2013-02-28
@Yeah

Another option: casperjs.org/

A
asm0dey, 2013-02-28
@asm0dey

If you don’t find anything, I can try to roll out a console utility in Java for you. Need it - write in a personal.

P
pewpew, 2013-02-28
@pewpew

wget -r http://ya.ru/

P
pawnhearts, 2013-02-28
@pawnhearts

python+webkitgtk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question