https://github.com/uzimaru0000/oglens
Tools for viewing OGP
https://github.com/uzimaru0000/oglens
cli ogp
Last synced: 12 months ago
JSON representation
Tools for viewing OGP
- Host: GitHub
- URL: https://github.com/uzimaru0000/oglens
- Owner: uzimaru0000
- License: mit
- Created: 2022-09-26T10:48:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-26T14:17:52.000Z (almost 3 years ago)
- Last Synced: 2025-05-18T02:51:35.042Z (about 1 year ago)
- Topics: cli, ogp
- Language: Rust
- Homepage:
- Size: 146 KB
- Stars: 22
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
:mag: OGLens

Tools for viewing OGP
[](https://github.com/uzimaru0000/oglens/blob/master/LICENSE)
[](https://github.com/uzimaru0000/oglens/releases/latest)

```bash
$ 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
```bash
$ brew install uzimaru0000/tap/oglens
```
### Use cargo
```bash
$ 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 settings other than OG. Specify key separated by colons. ex:
--prefix=twitter:name
-V, --version
Print version information
```
### ARGS
```
HTML file path
```