h7kayama / opengraph

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.1.0"}]
end
  1. Ensure opengraph is started before your application:
def application do
  [applications: [:opengraph]]
end

About

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


Languages

Language:Elixir 100.0%