Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HosterScraper<T, SO>

Type parameters

Hierarchy

Implements

Index

Properties

Abstract defaultOptions

defaultOptions: SO

Abstract domains

domains: string[]

Abstract name

name: string

Abstract urlPattern

urlPattern: RegExp

Methods

changeOptions

  • changeOptions(options: Partial<SO>): SO

Protected Abstract exec

  • exec(url: string, options: SO): Promise<T>

getOptions

  • getOptions(options?: Partial<SO>): SO

Protected getScrap

  • getScrap(url: string, dataSupplier: function): Promise<Scrap<T>>

getUrlData

  • getUrlData(url: string, throwIfNull: true): RegExpExecArray
  • getUrlData(url: string, throwIfNull: false): RegExpExecArray | null

isApplicable

  • isApplicable(url: string): boolean

isApplicableDomain

  • isApplicableDomain(domain: string): boolean

scrap

  • scrap(url: string, options?: SO): Promise<Scrap<T>>

Static mergeOptions

  • mergeOptions<O>(o1: O, o2: Partial<O> | O | undefined): O
  • mergeOptions<O>(o1: O | Partial<O> | undefined, o2: O): O
  • mergeOptions<O>(o1: Partial<O> | undefined, o2: Partial<O>): Partial<O>
  • mergeOptions<O>(o1: Partial<O>, o2: Partial<O> | undefined): Partial<O>
  • mergeOptions<O>(o1: Partial<O> | undefined, o2: Partial<O> | undefined): Partial<O> | undefined

Generated using TypeDoc