ag-webscrape
Version:
TypeScript web scraper with Playwright fallback for anti-scraping protection
16 lines • 544 B
TypeScript
import type { HTMLElement } from 'node-html-parser';
export interface PageResult {
html: HTMLElement;
status: number;
statusText: string;
url: string;
headers: Record<string, string>;
}
export declare const launchBrowser: (executablePath?: string) => Promise<void>;
export declare const closeBrowser: () => Promise<void>;
export declare const goToPage: (url: string | URL, opt?: {
timeout?: number;
wailUntilSelector?: string;
executablePath?: string;
}) => Promise<PageResult>;
//# sourceMappingURL=dom.d.ts.map