This commit is contained in:
2025-12-15 16:21:06 +01:00
parent 5d8441bf27
commit f1f95953dd
19 changed files with 429 additions and 144 deletions

View File

@@ -2,6 +2,7 @@
const fs = require('fs');
const path = require('path');
const os = require('os');
const cheerio = require("cheerio");
const { queryAll, run } = require('./database');
const { scrape } = require("./headless");
const extensions = new Map();
@@ -62,6 +63,7 @@ async function loadExtension(fileName) {
}
const name = instance.constructor.name;
instance.scrape = scrape;
instance.cheerio = cheerio;
extensions.set(name, instance);
console.log(`📦 Installed & loaded: ${name}`);
return name;

View File

@@ -23,7 +23,6 @@ async function initHeadless() {
"--mute-audio",
"--no-first-run",
"--no-zygote",
"--single-process"
]
});
context = await browser.newContext({