Skip to contents

Parse Open Graph Metadata

Usage

og_parse(url)

Arguments

url

A string representing the URL of the webpage to parse.

Value

A named vector of Open Graph metadata.

Examples

og_parse('https://www.rstudio.com')
#>                                                                                                                                        image 
#>                                                                  "https://posit.co/wp-content/themes/Posit/dist/images/site-share-image.jpg" 
#>                                                                                                                                   image:type 
#>                                                                                                                                  "image/jpg" 
#>                                                                                                                                  image:width 
#>                                                                                                                                       "1200" 
#>                                                                                                                                 image:height 
#>                                                                                                                                        "630" 
#>                                                                                                                                          url 
#>                                                                                                                      "https://www.posit.co/" 
#>                                                                                                                                        title 
#>                                                                                                                                      "Posit" 
#>                                                                                                                                       locale 
#>                                                                                                                                      "en_US" 
#>                                                                                                                                         type 
#>                                                                                                                                    "website" 
#>                                                                                                                                        title 
#>                                                                                               "Posit | The Open-Source Data Science Company" 
#>                                                                                                                                  description 
#> "The best data science is open source. Posit is committed to creating incredible open-source tools for individuals, teams, and enterprises." 
#>                                                                                                                                          url 
#>                                                                                                                          "https://posit.co/" 
#>                                                                                                                                    site_name 
#>                                                                                                                                      "Posit"