UNPKG

universal-pdp-scrapper

Version:
18 lines (17 loc) 477 B
import type { ScrapperOutput } from '../types/scrapperOutput'; export declare class Google { serpApiKey?: string; googleApiKey: string; googleCseId: string; url: string; constructor(config: { url: string; } & ({ serpApiKey: string; } | { googleApiKey: string; googleCseId: string; })); getImages(prompt: string, useSerpApi?: boolean): Promise<string[]>; extract(html?: string): Promise<ScrapperOutput>; }