Skip to content

uzimaru0000/oglens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 OGLens

Tools for viewing OGP

$ curl https://ogp.me | og
+-----------------+-----------------------------------------------------------------------------------------+
| property        | content                                                                                 |
+-----------------+-----------------------------------------------------------------------------------------+
| og:title        | Open Graph protocol                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:type         | website                                                                                 |
+-----------------+-----------------------------------------------------------------------------------------+
| og:url          | https://ogp.me/                                                                         |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image        | https://ogp.me/logo.png                                                                 |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:type   | image/png                                                                               |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:width  | 300                                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:height | 300                                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:image:alt    | The Open Graph logo                                                                     |
+-----------------+-----------------------------------------------------------------------------------------+
| og:description  | The Open Graph protocol enables any web page to become a rich object in a social graph. |
+-----------------+-----------------------------------------------------------------------------------------+

How to install

For MacOS

$ brew install uzimaru0000/tap/oglens

Use cargo

$ cargo install oglens

How to use

USAGE

og [OPTIONS] [PATH]

OPTIONS

-h, --help
        Print help information

-j, --json
        Displayed in JSON format

-p, --prefix <PREFIX>
        Prefix settings other than OG. Specify key separated by colons. ex:
        --prefix=twitter:name

-V, --version
        Print version information

ARGS

<PATH>  HTML file path