updated links id page

This commit is contained in:
daniel31x13
2023-12-07 00:33:05 -05:00
parent 4b1017f45b
commit ce5b1f444a
6 changed files with 77 additions and 82 deletions
+17
View File
@@ -37,6 +37,23 @@ export default async function urlHandler(
const content = await page.content();
// TODO
// const session = await page.context().newCDPSession(page);
// const doc = await session.send("Page.captureSnapshot", {
// format: "mhtml",
// });
// const saveDocLocally = (doc: any) => {
// console.log(doc);
// return createFile({
// data: doc,
// filePath: `archives/${targetLink.collectionId}/${linkId}.mhtml`,
// });
// };
// saveDocLocally(doc.data);
// Readability
const window = new JSDOM("").window;