universal-pdp-scrapper
Version:
A universal pdp scrapper using cheerio & ChatGPT
18 lines (17 loc) • 477 B
TypeScript
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>;
}