Learn R Programming

opengraph (version 0.0.2)

og_property: Extract a specific Open Graph property from a webpage.

Description

Extract a specific Open Graph property from a webpage.

Usage

og_property(url, property)

Value

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

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").

Examples

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

Run the code above in your browser using DataLab