title: Mirror a website with httrack while executing javascript
body: <p>I want do save a mirror of www.youtube.com/tv. I obviously do not want to save the videos. I want the code running the website in a local copy, everything else can stay remote. The code I want is mainly contained in 2 files: live.js and app-prod.js.</p>
  
  <p>I tried using httrack. I have issue parsing the javascript to load anything past the first file: live.js. The %P parameter does not help.</p>
  
  <pre><code>httrack www.youtube.com/tv +* -r6 --mirror -%P -j
  </code></pre>
  
  <p>It doesn't go further than live.js because some javascript needs to be executed to load the next file.</p>
  
  <p>I know I can do this manually with any browser. I want to automate the process.</p>
  
  <p>Is httrack able to do this by itself?
  If yes, how?</p>