og_property {opengraph}R Documentation

Extract a specific Open Graph property from a webpage.

Description

Extract a specific Open Graph property from a webpage.

Usage

og_property(url, property)

Arguments

url

A string representing the URL of the webpage to parse.

property

A string indicating the Open Graph property (e.g., "og:title" or "title").

Value

A string containing the value of the specified property, or NA if not found.

Examples

og_property('https://www.rstudio.com', 'og:title')

[Package opengraph version 0.0.2 Index]