Skip to main content
Version: 3.1

parseOpenGraph

Callable

  • parseOpenGraph(raw: string, additionalProperties?: OpenGraphProperty[]): Dictionary<OpenGraphResult>
  • parseOpenGraph($: CheerioAPI, additionalProperties?: OpenGraphProperty[]): Dictionary<OpenGraphResult>

  • Easily parse all OpenGraph properties from a page with just a CheerioAPI object.


    Parameters

    • raw: string
    • optionaladditionalProperties: OpenGraphProperty[]

      Any potential additional OpenGraphProperty items you'd like to be scraped. Currently existing properties are kept up to date.

    Returns Dictionary<OpenGraphResult>

    Scraped OpenGraph properties as an object.