feat: integrate node-html-parser for HTML fetching and parsing

- Added node-html-parser as a dependency for parsing HTML content.
- Implemented fetch-html script to fetch and parse HTML from a specified URL.
- Updated script sandbox to allow the use of node-html-parser.
- Created a new workflow for fetching data from dev.to, including configuration for URL and selectors.
- Updated package.json to include node-html-parser in server package dependencies.
This commit is contained in:
2026-08-14 15:02:27 +07:00
parent 023cf83cfa
commit 389f94f950
6 changed files with 184 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { SCRIPTS_DIR } from "./paths.js";
const hostRequire = createRequire(import.meta.url);
const ALLOWED_MODULES = new Set(["axios", "jsonata"]);
const ALLOWED_MODULES = new Set(["axios", "jsonata", "node-html-parser"]);
const BUILTIN_NAMES = [
"Infinity",