Skip to content

alexander-akhmetov/opengraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages