Initial commit

This commit is contained in:
2022-09-08 12:12:25 +02:00
parent bad727466e
commit 21a4825385
13 changed files with 431 additions and 0 deletions

5
PageSaver/package.json Normal file
View File

@@ -0,0 +1,5 @@
{
"dependencies": {
"puppeteer": "^14.4.0"
}
}

BIN
PageSaver/pageSaver Normal file

Binary file not shown.

18
PageSaver/pageSaver.js Normal file
View File

@@ -0,0 +1,18 @@
// npm install https://github.com/GoogleChrome/puppeteer/
const puppeteer = require('puppeteer');
(async () => {
const url = process.argv[2];
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(url, {waitUntil: 'load'});
const html = await page.content();
browser.close();
console.log(html);
})();