Class UniversalPDPScrapper
Constructors
constructor
- new UniversalPDPScrapper(
config?: ({ serpApiKey?: string | undefined; } | { googleApiKey?: string | undefined; googleCseId?: string | undefined; }) & { openaiApiKey?: string | undefined; openaiOrgId?: string | undefined; openaiModelId?: string | undefined; },
): UniversalPDPScrapper Parameters
Optional
config: ({ serpApiKey?: string | undefined; } | { googleApiKey?: string | undefined; googleCseId?: string | undefined; }) & { openaiApiKey?: string | undefined; openaiOrgId?: string | undefined; openaiModelId?: string | undefined; }
Methods
scrape
- scrape(url: string, timeoutInSeconds?: number): Promise<null | ScrapperOutput>
Parameters
- url: string
- timeoutInSeconds: number = 15