anuragdhingra / opengraph

Golang Open Graph Parser

Home Page:https://godoc.org/github.com/otiai10/opengraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Graph Parser for Golang

Build Status codecov GoDoc

Code Example

package main

import (
	"fmt"
	"github.com/otiai10/opengraph"
)

func main() {
	og, err := opengraph.Fetch("https://www.youtube.com/watch?v=5blm22DeeHY")
	fmt.Printf("OpenGraph: %+v\nError: %v\n", og, err)
}

CLI as a working example

% go get github.com/otiai10/opengraph/ogp
% ogp --help

For more details, see ogp/main.go.

Advanced

About

Golang Open Graph Parser

https://godoc.org/github.com/otiai10/opengraph

License:MIT License


Languages

Language:Go 62.0%Language:HTML 38.0%