Created
January 9, 2020 02:04
-
-
Save twfahey1/ad6b886aa190a6523f754c61dd0d2311 to your computer and use it in GitHub Desktop.
Dump contents of page in puppeteer - node JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let bodyHTML = await page.evaluate(() => document.body.innerHTML); | |
console.log(bodyHTML); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment