Skip to content

bitboxer/opengraph_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGraph

Build Status Hex.pm version Hex.pm downloads

A Elixir wrapper for the Open Graph protocol. This is a fork of open_graph_extended. The main goal is to have an active maintained version again.

Installation

The package can be installed by opengraph_parser to your list of dependencies in mix.exs:

def deps do
  [{:opengraph_parser, "~> 0.6.0"}]
end

Usage

iex(2)> OpenGraph.parse("<!DOCTYPE html><html><head><meta property=\"og:title\" content=\"Some title\"></head><body><h1>Some title</h1></body></html>")

%OpenGraph{description: nil, image: nil, site_name: nil, title: "Some title",
 type: nil, url: nil}

License

OpenGraphParser Elixir source code is licensed under the MIT License.

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages