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.
16 lines (15 loc) • 504 B
TypeScript
export interface AutoPaginateOptions {
item_selector: string;
next_button_selector: string;
max_pages?: number;
min_click_delay?: number;
max_click_delay?: number;
timeout?: number;
}
export interface AutoPaginateResult {
from: number;
to: number;
pages: number;
status: string;
}
export declare function autoPaginate({ item_selector, next_button_selector, max_pages, min_click_delay, max_click_delay, timeout }: AutoPaginateOptions): Promise<AutoPaginateResult>;