0

How do you download and save a page which is is dynamically generated from the command line? I tried

wget PageWithJS.com -O output.html

but output.html does not contain the dynamically generated code.

jsfan
  • 1,373
  • 9
  • 21

1 Answers1

2

wget does not execute JavaScript.

If you need the DOM as it loooks after Javascript rendering, use something like PhantomJS to download the page.

jsfan
  • 1,373
  • 9
  • 21