opengraph
Version, currently 0.1.01 version
- 0.1.0latestMay 28, 2019
github.com/watzon/opengraph.cr
Crystal wrapper for the Open Graph protocol
8 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
opengraph:
github: watzon/opengraph.cr
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
0.28.0- License
- MIT
- Author
- Chris Watson <chris@watzon.me>
Dependencies
Runtime Dependencies
- crystagiri*github: madeindjs/crystagiri
README
# opengraph.cr
Crystal wrapper for the [Open Graph](http://ogp.me) protocol, allowing you to parse Open Graph meta tags and extract valuable information.
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
opengraph:
github: watzon/opengraph.cr
```
2. Run `shards install`
## Usage
```crystal
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
1. Fork it (<https://github.com/watzon/opengraph/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Chris Watson](https://github.com/watzon) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- May 28, 2019
- Commit
136fba6eece7- Crystal
0.28.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/watzon/opengraph.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1