Im trying to reflect a site that uses a crazy javascript menu created on the client. Both wget and httrack cannot load the whole site, because the links are simply missing until the JS code is run. What can I do?
I tried to load the index home page into the browser. This runs the JS code, a menu is created, and I can unload the resulting DOM into an HTML file and a mirror from this file. This downloads more files since the links are already in the source. But, obviously, mirroring soon breaks down on other recently loaded pages that contain JS's uninterpreted menus.
I was thinking of replacing the menu portion of each loaded page with a static version of the menu, but I cannot find any wget or httrack flags that will allow me to run the downloaded files with an external command. I could write simple proxy filtering, but it starts to sound extreme. Other ideas?
source share