Skip to content
Discussion options

You must be logged in to vote

We do save the html content for the main document, but this isn't the initial request if there were any redirects.

You should be able to get the html using the node api:

const {artifacts} = await lighthouse(url);
fs.writeFileSync('main.html', artifacts.MainDocumentContent);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@plesiecki
Comment options

Answer selected by plesiecki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #13824 on April 06, 2022 15:48.