UNPKG

syphonx-core

Version:

SyphonX is a template-driven solution for extracting data from HTML in a highly efficient way. It combines the power of jQuery, Regular Expressions, and Javascript into a declarative template-driven format that extracts and reshapes HTML data into JSON.

18 lines (17 loc) 444 B
import { Action, DocumentLoadState } from "./package/index.js"; export interface Template { actions: Action[]; url?: string; params?: Record<string, unknown>; vars?: Record<string, unknown>; debug?: boolean; useragent?: string; headers?: Record<string, string>; timeout?: number; unpatch?: string[]; viewport?: { width: number; height: number; }; waitUntil?: DocumentLoadState; }