articleswikiproducts
RSS feed
contact
articleswikiproducts
RSS feed
contact
articleswiki
products

Made by nerdfish, development with user experience in mind.

Github
All wiki

Check Open Graph (OG) data through cli

18 December 2023

Original documentation: https://github.com/almonk/ogpk

Install

Usage

If the optional dependency `timg` is installed, `ogpk` can also display the `og:image` directly in the terminal.

To fetch OpenGraph data from a website:

To display the og:image in the terminal (requires timg):

Output data as JSON:

Optional Dependency on timg

ogpk has an optional dependency on timg, a terminal image viewer. If timg is installed and available in the PATH, ogpk can display the og:image directly in the terminal when the --p flag is used.

To install timg, refer to its official documentation.

brew tap almonk/ogpk
brew install ogpk
ogpk [URL]
ogpk [URL] --p
ogpk [URL] --json