/opengraph

Elixir library for parsing OpenGraph data (http://ogp.me)

Primary LanguageElixir

OpenGraph [ WIP! ] Build Status Hex pm

OpenGraph is an Elixir package to parse OpenGraph data from webpages. (Docs)

Usage

iex(1)> OpenGraph.parse("https://yandex.ru")

{:ok,
 %OpenGraphData{description: "Найдётся всё",
  image: "https://yastatic.net/morda-logo/i/share-logo-ru.png",
  title: "Яндекс", url: "https://yandex.ru"}}

iex(2)>

Installation

  1. Add opengraph to your list of dependencies in mix.exs:
def deps do
  [{:opengraph, "~> 0.2.0"}]
end
  1. Ensure opengraph is started before your application:
def application do
  [applications: [:opengraph]]
end