{"action":"created","issue":{"url":"https://api.github.com/repos/casperjs/casperjs/issues/1015","repository_url":"https://api.github.com/repos/casperjs/casperjs","labels_url":"https://api.github.com/repos/casperjs/casperjs/issues/1015/labels{/name}","comments_url":"https://api.github.com/repos/casperjs/casperjs/issues/1015/comments","events_url":"https://api.github.com/repos/casperjs/casperjs/issues/1015/events","html_url":"https://github.com/casperjs/casperjs/issues/1015","id":40488060,"number":1015,"title":"support static html snapshot output format","user":{"login":"requiredfield","id":6235698,"avatar_url":"https://avatars.githubusercontent.com/u/6235698?v=3","gravatar_id":"","url":"https://api.github.com/users/requiredfield","html_url":"https://github.com/requiredfield","followers_url":"https://api.github.com/users/requiredfield/followers","following_url":"https://api.github.com/users/requiredfield/following{/other_user}","gists_url":"https://api.github.com/users/requiredfield/gists{/gist_id}","starred_url":"https://api.github.com/users/requiredfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/requiredfield/subscriptions","organizations_url":"https://api.github.com/users/requiredfield/orgs","repos_url":"https://api.github.com/users/requiredfield/repos","events_url":"https://api.github.com/users/requiredfield/events{/privacy}","received_events_url":"https://api.github.com/users/requiredfield/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-08-18T13:34:49Z","updated_at":"2016-04-22T19:58:34Z","closed_at":"2016-04-22T19:58:34Z","body":"From ariya/phantomjs#12459:\r\n\r\n> Currently phantomjs can output rendered snapshots as various image formats (png, jpg, pdf). Is there any interest in adding support for a static html output format, à la [archive.today](https://archive.today/) (which is built on phantomjs but closed source :cry:)? \"static html\" just means that the snapshot of the DOM taken after rendering the page is saved as plain old static html, with dynamic elements like `<script>`, `<object>`, `<canvas>`, etc. either stripped or replaced with embedded images of their rendered results as appropriate. CSS could be inlined à la [premailer](http://premailer.dialect.ca/), and images could be embedded with data: urls if desired, so that a single .html file could be saved containing everything it needed to render the page without referring to any external resources. Also, a custom `rewrite_link` function could be provided so that links in any `<a href>` elements could be rewritten to preserve navigability between multiple html snapshots. If there is interest in this I'd be happy to try to contribute!\r\n\r\nAriya [replied](https://github.com/ariya/phantomjs/issues/12459#issuecomment-52475366) that this is outside PhantomJS's scope. Is there interest in this from CasperJS?\r\n\r\nThanks, and thanks for the great work on CasperJS."},"comment":{"url":"https://api.github.com/repos/casperjs/casperjs/issues/comments/213569254","html_url":"https://github.com/casperjs/casperjs/issues/1015#issuecomment-213569254","issue_url":"https://api.github.com/repos/casperjs/casperjs/issues/1015","id":213569254,"user":{"login":"BIGjuevos","id":1751088,"avatar_url":"https://avatars.githubusercontent.com/u/1751088?v=3","gravatar_id":"","url":"https://api.github.com/users/BIGjuevos","html_url":"https://github.com/BIGjuevos","followers_url":"https://api.github.com/users/BIGjuevos/followers","following_url":"https://api.github.com/users/BIGjuevos/following{/other_user}","gists_url":"https://api.github.com/users/BIGjuevos/gists{/gist_id}","starred_url":"https://api.github.com/users/BIGjuevos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BIGjuevos/subscriptions","organizations_url":"https://api.github.com/users/BIGjuevos/orgs","repos_url":"https://api.github.com/users/BIGjuevos/repos","events_url":"https://api.github.com/users/BIGjuevos/events{/privacy}","received_events_url":"https://api.github.com/users/BIGjuevos/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T19:58:34Z","updated_at":"2016-04-22T19:58:34Z","body":"**As part of a cleanup effort:** \r\nLooks to be a stale request. Assuming you've moved on to better and cooler things.  Please feel free to re-open if this is still an active issue for you and we'll try our best to help out."}}