module OpenGraph
Overview
TODO Write documentation for Opengraph
Extended Modules
Defined in:
opengraph.cropengraph/object.cr
opengraph/version.cr
Constant Summary
-
VERSION =
"0.1.0"
Class Method Summary
-
.from_url(url)
Fetch Open Graph data from the specified
url
. -
.parse(html, strict = true)
Parse raw
html
either from a string or anXML::Node
and return anOpenGraph::Object
.
Class Method Detail
def self.from_url(url)
#
Fetch Open Graph data from the specified url
. Makes an
HTTP GET request and returns an OpenGraph::Object
or nil if the URL was not found.
def self.parse(html, strict = true)
#
Parse raw html
either from a string or an XML::Node
and return an OpenGraph::Object
.