opengraph
Version, currently master branch1 version
- master branchlatestMar 28, 2024
github.com/uu/opengraph.cr
Crystal wrapper for the Open Graph protocol
0 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
opengraph:
github: uu/opengraph.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.28.0- License
- MIT
- Author
- Chris Watson
Dependencies
Runtime Dependencies
- crystagiri*github: madeindjs/crystagiri
README
opengraph.cr
Crystal wrapper for the Open Graph protocol, allowing you to parse Open Graph meta tags and extract valuable information.
Installation
-
Add the dependency to your
shard.yml:dependencies: opengraph: github: watzon/opengraph.cr -
Run
shards install
Usage
require "opengraph"
og = OpenGraph.from_url("css-tricks.com")
# og = OpenGraph.parse("<!-- RAW HTML -->")
puts og.website?
# => true
puts og["title"]?
# => "CSS-Tricks"
puts og["image"]?
# => "https://css-tricks.com/wp-content/uploads/2014/03/css-tricks-star.png"
Contributing
- Fork it (https://github.com/watzon/opengraph/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Chris Watson - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Mar 28, 2024
- Crystal
0.28.0- Indexed
- yes
Dependents
Repository
github.com/uu/opengraph.cr
Metadata
- Created
- Aug 19, 2026
- Updated
- Sep 22, 2026
- Synced
- Sep 22, 2026
- Versions
- 1