Crates.io | ograph-rs |
lib.rs | ograph-rs |
version | 0.4.1 |
source | src |
created_at | 2024-08-01 04:38:14.77766 |
updated_at | 2024-11-05 21:22:29.515924 |
description | A simple command-line utility to extract and print OpenGraph metadata from a given URL. |
homepage | |
repository | https://git.average.name/AverageHelper/ograph-rs |
max_upload_size | |
id | 1321606 |
size | 81,167 |
A simple command-line utility to extract and print OpenGraph metadata from a given URL.
[!NOTE] This project is mainly for helping me to learn Rust. If it becomes something robust and reliable in the future, then great! For now, I have no idea what I'm doing.
ograph 'https://www.rust-lang.org'
The above command prints the following:
twitter:card "summary"
twitter:site "@rustlang"
twitter:creator "@rustlang"
twitter:title ""
twitter:description "A language empowering everyone to build reliable and efficient software."
twitter:image "https://www.rust-lang.org/static/images/rust-social.jpg"
og:title ""
og:description "A language empowering everyone to build reliable and efficient software."
og:image "https://www.rust-lang.org/static/images/rust-social-wide.jpg"
og:type "website"
og:locale "en_US"
By default, ograph
follows HTTP redirects. To avoid following redirects, use either --no-follow-redirects
or -d
:
ograph -d 'https://avg.name'
Use --help
or -h
for more information.
To build from source, you first need cargo
installed. Then run:
git clone https://git.average.name/AverageHelper/ograph-rs.git
cd ograph-rs
cargo build --release
You can then run the binary directly at ./target/release/ograph
, or use cargo
:
cargo run --release -- https://example.com
cargo
)This package is published on our own package registry. With cargo
installed, run the following:
cargo install --index sparse+https://git.average.name/api/packages/AverageHelper/cargo/ ograph-rs
Also available from crates.io:
cargo install ograph-rs --registry crates-io
brew
) (EXPERIMENTAL)This package is available as a formula on our own formula repository. To tap this registry:
brew tap --force-auto-update averagehelper/homebrew 'https://git.average.name/AverageHelper/homebrew'
Then, to install the formula:
brew install averagehelper/homebrew/ograph-rs
pkg
)This package is available on the Termux User Repository. To set up the external repository:
pkg install tur-repo
Then, to install:
pkg install ograph-rs