display metadata properties from HTML document
- OCaml 50.2%
- Roff 17.6%
- Perl 14.9%
- Raku 13.8%
- Dune 3.5%
| bin | cli: remove VERSION watermark for now | |
| lib | visual: add all C0 and few C1 | |
| test | add comment on unexpected_fails.t | |
| .gitignore | gitignore: add _opam | |
| .ocamlformat | several changes in visual, httpc and filtering | |
| dune | opam: install man page | |
| dune-project | use ezcurl instead of cohttp-lwt-unix | |
| LICENSE | add LICENSE file | |
| ogcat.1 | man: add man page | |
| ogcat.md | provide proper README.md and separated man page documentation | |
| ogcat.opam | use ezcurl instead of cohttp-lwt-unix | |
| README.md | readme: fix sentence | |
ogcat
ogcat is a cli tool to display metadata properties from HTML document.
The purpose is to access easily of metadata usually contained in HTML document, without having to go through a web browser.
$ ogcat https://mstdn.fr/@fatuus/113512177529821531
og:site_name: mstdn
og:type: article
og:title: fatuus (@fatuus@mstdn.fr)
og:url: https://mstdn.fr/@fatuus/113512177529821531
og:published_time: 2024年11月19日T23:19:32Z
og:description:
Attached: 1 image
J'ai rigolu. Mais rigolu.... !!!
og:image: https://static.mstdn.fr/static/media_attachments/files/113/512/166/821/338/233/original/ca5d93ad503b19fd.jpg
og:image:type: image/jpeg
og:image:width: 3838
og:image:height: 2161
og:image:alt: Swaeter with written 'I only give negative feedback' next to an electronic schematics of a Operational Amplifier wired in negative
feedback setup : https://en.m.wikipedia.org/wiki/Negative_feedback
ogcat is build around:
- ezcurl : for http client
- lambdasoup : for parsing HTML and extracting properties
The man page is accessible at ogcat.md