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.

24 lines (23 loc) 574 B
import { ExtractError } from "./ExtractError"; import { Action } from "./Action.js"; import { YieldState } from "./Yield.js"; export interface ExtractState { [key: string]: any; actions: Action[]; url: string; domain: string; origin: string; params: Record<string, unknown>; vars: Record<string, unknown>; data: any; log: string; errors: ExtractError[]; debug: boolean; yield?: YieldState; root?: unknown; timeout?: number; context?: string; originalUrl?: string; unpatch: string[]; version: string; }